diff options
author | R. David Murray <rdmurray@bitdance.com> | 2010-09-29 01:08:05 (GMT) |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2010-09-29 01:08:05 (GMT) |
commit | 11cabcf73d82ca0174de85144930ce87ee538581 (patch) | |
tree | 7e17748f655ff9e142f657f41e64bdcebdd16bf1 | |
parent | c663b58c9a29c1c5c05c6d33a05a04f7c4fc18fd (diff) | |
download | cpython-11cabcf73d82ca0174de85144930ce87ee538581.zip cpython-11cabcf73d82ca0174de85144930ce87ee538581.tar.gz cpython-11cabcf73d82ca0174de85144930ce87ee538581.tar.bz2 |
#7110: have regrtest print test failures and tracebacks to stderr not stdout.
Patch by Sandro Tosi.
-rwxr-xr-x | Lib/test/regrtest.py | 12 | ||||
-rw-r--r-- | Misc/ACKS | 1 | ||||
-rw-r--r-- | Misc/NEWS | 3 |
3 files changed, 10 insertions, 6 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 366cedf..55c73e2 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -957,16 +957,16 @@ def runtest_inner(test, verbose, quiet, except KeyboardInterrupt: raise except support.TestFailed as msg: - print("test", test, "failed --", msg) - sys.stdout.flush() + print("test", test, "failed --", msg, file=sys.stderr) + sys.stderr.flush() return FAILED, test_time except: type, value = sys.exc_info()[:2] - print("test", test, "crashed --", str(type) + ":", value) - sys.stdout.flush() + print("test", test, "crashed --", str(type) + ":", value, file=sys.stderr) + sys.stderr.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: @@ -818,6 +818,7 @@ Frank J. Tobin R Lindsay Todd Bennett Todd Matias Torchinsky +Sandro Tosi Richard Townsend Laurence Tratt John Tromp @@ -260,6 +260,9 @@ Tools/Demos 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 #9899: Fix test_tkinter.test_font on various platforms. Patch by |