Kaydet (Commit) cd4f7584 authored tarafından R. David Murray's avatar R. David Murray

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.
........
üst af9e92ba
...@@ -659,16 +659,16 @@ def runtest_inner(test, generate, verbose, quiet, test_times, ...@@ -659,16 +659,16 @@ def runtest_inner(test, generate, verbose, quiet, test_times,
except KeyboardInterrupt: except KeyboardInterrupt:
raise raise
except support.TestFailed as msg: except support.TestFailed as msg:
print("test", test, "failed --", msg) print("test", test, "failed --", msg, file=sys.stderr)
sys.stdout.flush() sys.stderr.flush()
return 0 return 0
except: except:
type, value = sys.exc_info()[:2] type, value = sys.exc_info()[:2]
print("test", test, "crashed --", str(type) + ":", value) print("test", test, "crashed --", str(type) + ":", value, file=sys.stderr)
sys.stdout.flush() sys.stderr.flush()
if verbose or debug: if verbose or debug:
traceback.print_exc(file=sys.stdout) traceback.print_exc(file=sys.stderr)
sys.stdout.flush() sys.stderr.flush()
return 0 return 0
else: else:
if refleak: if refleak:
......
...@@ -784,6 +784,7 @@ Christian Tismer ...@@ -784,6 +784,7 @@ Christian Tismer
Frank J. Tobin Frank J. Tobin
R Lindsay Todd R Lindsay Todd
Bennett Todd Bennett Todd
Sandro Tosi
Richard Townsend Richard Townsend
Laurence Tratt Laurence Tratt
John Tromp John Tromp
......
...@@ -27,6 +27,12 @@ Library ...@@ -27,6 +27,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 3.1.3? What's New in Python 3.1.3?
=========================== ===========================
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment