[issue7667] test_doctest fails with non-ascii path
STINNER Victor
report at bugs.python.org
Thu Jan 21 04:34:36 CET 2010
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
There are 2 different issues:
* doctest.DocTestRunner.report_failure() raise an unicode error if the source line type is unicode: _failure_header() should convert the line to bytes using ASCII with backslashreplace error handler (as sys.stderr)
* traceback.print_tb() raises an unicode error if the source line type is unicode: same solution (ASCII+bashslashreplace)
See also #Issue7708.
----------
keywords: +patch
nosy: +haypo
Added file: http://bugs.python.org/file15962/test_doctest.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7667>
_______________________________________
More information about the Python-bugs-list
mailing list