mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #8533: Write tracebacks and failed tests to sys.stderr instead of
sys.stdout to avoid UnicodeEncodeError (use backslashreplace error handler)
This commit is contained in:
parent
70d8a86ea0
commit
0d80a5874a
3 changed files with 6 additions and 3 deletions
|
@ -939,8 +939,8 @@ def runtest_inner(test, verbose, quiet,
|
|||
print("test", test, "crashed --", str(type) + ":", value)
|
||||
sys.stdout.flush()
|
||||
if verbose or debug:
|
||||
traceback.print_exc(file=sys.stdout)
|
||||
sys.stdout.flush()
|
||||
traceback.print_exc(file=sys.stderr)
|
||||
sys.stderr.flush()
|
||||
return FAILED, test_time
|
||||
else:
|
||||
if refleak:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue