cpython/Lib/test/test_inspect
Serhiy Storchaka c85549cc61
[3.13] gh-69370: Fix "python -m inspect --details" for unencodable paths (GH-155246) (GH-156607)
It failed with UnicodeEncodeError if the path of the module contains
characters unencodable in the encoding of sys.stdout, e.g. undecodable
bytes of a file name.  Such characters are now escaped with backslashes,
unless stdout uses an error handler which can handle them.

(cherry picked from commit abf7a184bd)

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-29 20:20:41 +00:00
..
__init__.py
inspect_fodder.py
inspect_fodder2.py
inspect_stock_annotations.py
inspect_stringized_annotations.py
inspect_stringized_annotations_2.py
inspect_stringized_annotations_pep695.py
test_inspect.py [3.13] gh-69370: Fix "python -m inspect --details" for unencodable paths (GH-155246) (GH-156607) 2026-08-29 20:20:41 +00:00