summaryrefslogtreecommitdiffstats
path: root/Lib/test/regrtest.py
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2010-12-04 17:24:46 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2010-12-04 17:24:46 (GMT)
commit0960bc586ee5a2a53c5c8c92bd17f03d4d75efef (patch)
tree6aad30b794be70b540bea01ab7d77d6e635c4050 /Lib/test/regrtest.py
parentecf8ec67ce26dc7612742019cea5c8b190048993 (diff)
downloadcpython-0960bc586ee5a2a53c5c8c92bd17f03d4d75efef.zip
cpython-0960bc586ee5a2a53c5c8c92bd17f03d4d75efef.tar.gz
cpython-0960bc586ee5a2a53c5c8c92bd17f03d4d75efef.tar.bz2
Merged revisions 85086 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85086 | r.david.murray | 2010-09-28 21:08:05 -0400 (Tue, 28 Sep 2010) | 4 lines #7110: have regrtest print test failures and tracebacks to stderr not stdout. Patch by Sandro Tosi. ........
Diffstat (limited to 'Lib/test/regrtest.py')
-rwxr-xr-xLib/test/regrtest.py12
1 files changed, 6 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: