diff options
-rwxr-xr-x | Lib/test/regrtest.py | 12 | ||||
-rw-r--r-- | Misc/ACKS | 1 | ||||
-rw-r--r-- | Misc/NEWS | 6 |
3 files changed, 13 insertions, 6 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 5b1f4e2..5ee09d0 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -659,16 +659,16 @@ def runtest_inner(test, generate, verbose, quiet, test_times, 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 0 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 0 else: if refleak: @@ -784,6 +784,7 @@ Christian Tismer Frank J. Tobin R Lindsay Todd Bennett Todd +Sandro Tosi Richard Townsend Laurence Tratt John Tromp @@ -27,6 +27,12 @@ Library - Issue #10464: netrc now correctly handles lines with embedded '#' characters. +Tests +----- + +- Issue #7110: regrtest now sends test failure reports and single-failure + tracebacks to stderr rather than stdout. + What's New in Python 3.1.3? =========================== |