mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +00:00
#7110: have regrtest print test failures and tracebacks to stderr not stdout.
Patch by Sandro Tosi.
This commit is contained in:
parent
c663b58c9a
commit
11cabcf73d
3 changed files with 10 additions and 6 deletions
|
@ -957,16 +957,16 @@ def runtest_inner(test, verbose, quiet,
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
raise
|
raise
|
||||||
except support.TestFailed as msg:
|
except support.TestFailed as msg:
|
||||||
print("test", test, "failed --", msg)
|
print("test", test, "failed --", msg, file=sys.stderr)
|
||||||
sys.stdout.flush()
|
sys.stderr.flush()
|
||||||
return FAILED, test_time
|
return FAILED, test_time
|
||||||
except:
|
except:
|
||||||
type, value = sys.exc_info()[:2]
|
type, value = sys.exc_info()[:2]
|
||||||
print("test", test, "crashed --", str(type) + ":", value)
|
print("test", test, "crashed --", str(type) + ":", value, file=sys.stderr)
|
||||||
sys.stdout.flush()
|
sys.stderr.flush()
|
||||||
if verbose or debug:
|
if verbose or debug:
|
||||||
traceback.print_exc(file=sys.stdout)
|
traceback.print_exc(file=sys.stderr)
|
||||||
sys.stdout.flush()
|
sys.stderr.flush()
|
||||||
return FAILED, test_time
|
return FAILED, test_time
|
||||||
else:
|
else:
|
||||||
if refleak:
|
if refleak:
|
||||||
|
|
|
@ -818,6 +818,7 @@ Frank J. Tobin
|
||||||
R Lindsay Todd
|
R Lindsay Todd
|
||||||
Bennett Todd
|
Bennett Todd
|
||||||
Matias Torchinsky
|
Matias Torchinsky
|
||||||
|
Sandro Tosi
|
||||||
Richard Townsend
|
Richard Townsend
|
||||||
Laurence Tratt
|
Laurence Tratt
|
||||||
John Tromp
|
John Tromp
|
||||||
|
|
|
@ -260,6 +260,9 @@ Tools/Demos
|
||||||
Tests
|
Tests
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
- Issue #7110: regrtest now sends test failure reports and single-failure
|
||||||
|
tracebacks to stderr rather than stdout.
|
||||||
|
|
||||||
- Issue #9628: fix runtests.sh -x option so more than one test can be excluded.
|
- Issue #9628: fix runtests.sh -x option so more than one test can be excluded.
|
||||||
|
|
||||||
- Issue #9899: Fix test_tkinter.test_font on various platforms. Patch by
|
- Issue #9899: Fix test_tkinter.test_font on various platforms. Patch by
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue