diff options
author | R. David Murray <rdmurray@bitdance.com> | 2010-12-04 17:15:21 (GMT) |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2010-12-04 17:15:21 (GMT) |
commit | cd4f7584071c00ef41daa5a955e877a3efcb92ec (patch) | |
tree | 9a9be8e4a80d8384aa2e5fa6fc6ea4de7b8980fb /Lib/test/regrtest.py | |
parent | af9e92ba37f19e4564827a22316578987d7f6cb6 (diff) | |
download | cpython-cd4f7584071c00ef41daa5a955e877a3efcb92ec.zip cpython-cd4f7584071c00ef41daa5a955e877a3efcb92ec.tar.gz cpython-cd4f7584071c00ef41daa5a955e877a3efcb92ec.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-x | Lib/test/regrtest.py | 12 |
1 files changed, 6 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: |