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.
........
This commit is contained in:
R. David Murray 2010-12-04 17:24:46 +00:00
parent ecf8ec67ce
commit 0960bc586e
3 changed files with 13 additions and 6 deletions

View File

@ -894,16 +894,16 @@ def runtest_inner(test, verbose, quiet,
except KeyboardInterrupt: except KeyboardInterrupt:
raise raise
except test_support.TestFailed, msg: except test_support.TestFailed, msg:
print "test", test, "failed --", msg print >>sys.stderr, "test", test, "failed --", msg
sys.stdout.flush() sys.stderr.flush()
return FAILED, test_time return FAILED, test_time
except: except:
type, value = sys.exc_info()[:2] type, value = sys.exc_info()[:2]
print "test", test, "crashed --", str(type) + ":", value print >>sys.stderr, "test", test, "crashed --", str(type) + ":", value
sys.stdout.flush() sys.stderr.flush()
if verbose: if verbose:
traceback.print_exc(file=sys.stdout) traceback.print_exc(file=sys.stderr)
sys.stdout.flush() sys.stderr.flush()
return FAILED, test_time return FAILED, test_time
else: else:
if refleak: if refleak:

View File

@ -791,6 +791,7 @@ Frank J. Tobin
R Lindsay Todd R Lindsay Todd
Bennett Todd Bennett Todd
Matias Torchinsky Matias Torchinsky
Sandro Tosi
Richard Townsend Richard Townsend
Laurence Tratt Laurence Tratt
John Tromp John Tromp

View File

@ -24,6 +24,12 @@ Library
- Issue #10464: netrc now correctly handles lines with embedded '#' characters. - 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? What's New in Python 2.7.1?
=========================== ===========================