STINNER Victor <victor.stin...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue7667> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com