Issue 7667: test_doctest fails with non-ascii path (original) (raw)

Issue7667

Created on 2010-01-10 18:11 by flox, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test_doctest.patch vstinner,2010-01-21 03:34
Messages (4)
msg97533 - (view) Author: Florent Xicluna (flox) * (Python committer) Date: 2010-01-10 18:11
/tmp/py2u…→unicode $ ./python Lib/test/regrtest.py test_doctest test_doctest ********************************************************************** File "/tmp/py2u…→unicode/Lib/test/test_doctest.py", line 2052, in test.test_doctest.test_DocFileSuite Failed example: suite.run(unittest.TestResult()) Expected: <unittest.result.TestResult run=3 errors=0 failures=2> Got: <unittest.result.TestResult run=3 errors=2 failures=0> ********************************************************************** 1 items had failures: 1 of 40 in test.test_doctest.test_DocFileSuite ***Test Failed*** 1 failures. test test_doctest failed -- 1 of 421 doctests failed 1 test failed: test_doctest
msg98099 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2010-01-21 03:34
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.
msg100183 - (view) Author: Florent Xicluna (flox) * (Python committer) Date: 2010-02-27 12:06
It should be fixed with patch attached to #1729305.
msg101545 - (view) Author: Florent Xicluna (flox) * (Python committer) Date: 2010-03-22 22:46
Really fixed with r79307.
History
Date User Action Args
2022-04-11 14:56:56 admin set github: 51916
2010-03-22 22:46:27 flox set resolution: accepted -> fixed
2010-03-22 22:46:17 flox set superseder: test_doctest fails when run in verbose mode -> messages: +
2010-02-27 14:42:32 flox set status: open -> closedresolution: acceptedstage: patch review -> resolved
2010-02-27 12:06:03 flox set superseder: test_doctest fails when run in verbose modemessages: + stage: test needed -> patch review
2010-02-26 15:32:25 flox set assignee: floxtype: behavior
2010-01-21 03:34:30 vstinner set files: + test_doctest.patchnosy: + vstinnermessages: + keywords: + patch
2010-01-15 16:31:07 flox set priority: normalkeywords: + buildbotstage: test needed
2010-01-10 18:11:52 flox create