summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xLib/test/regrtest.py12
-rw-r--r--Misc/ACKS1
-rw-r--r--Misc/NEWS6
3 files changed, 13 insertions, 6 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index deb4229..9f038c4 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -894,16 +894,16 @@ def runtest_inner(test, verbose, quiet,
except KeyboardInterrupt:
raise
except test_support.TestFailed, msg:
- print "test", test, "failed --", msg
- sys.stdout.flush()
+ print >>sys.stderr, "test", test, "failed --", msg
+ 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 >>sys.stderr, "test", test, "crashed --", str(type) + ":", value
+ sys.stderr.flush()
if verbose:
- 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:
diff --git a/Misc/ACKS b/Misc/ACKS
index 4cd8350..24c072c 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -791,6 +791,7 @@ Frank J. Tobin
R Lindsay Todd
Bennett Todd
Matias Torchinsky
+Sandro Tosi
Richard Townsend
Laurence Tratt
John Tromp
diff --git a/Misc/NEWS b/Misc/NEWS
index 79ee4a2..6ca939a 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -24,6 +24,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 2.7.1?
===========================