[Python-checkins] r85086 - in python/branches/py3k: Lib/test/regrtest.py Misc/ACKS Misc/NEWS
r.david.murray
python-checkins at python.org
Wed Sep 29 03:08:05 CEST 2010
Author: r.david.murray
Date: Wed Sep 29 03:08:05 2010
New Revision: 85086
Log:
#7110: have regrtest print test failures and tracebacks to stderr not stdout.
Patch by Sandro Tosi.
Modified:
python/branches/py3k/Lib/test/regrtest.py
python/branches/py3k/Misc/ACKS
python/branches/py3k/Misc/NEWS
Modified: python/branches/py3k/Lib/test/regrtest.py
==============================================================================
--- python/branches/py3k/Lib/test/regrtest.py (original)
+++ python/branches/py3k/Lib/test/regrtest.py Wed Sep 29 03:08:05 2010
@@ -957,16 +957,16 @@
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 FAILED, test_time
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 FAILED, test_time
else:
if refleak:
Modified: python/branches/py3k/Misc/ACKS
==============================================================================
--- python/branches/py3k/Misc/ACKS (original)
+++ python/branches/py3k/Misc/ACKS Wed Sep 29 03:08:05 2010
@@ -818,6 +818,7 @@
R Lindsay Todd
Bennett Todd
Matias Torchinsky
+Sandro Tosi
Richard Townsend
Laurence Tratt
John Tromp
Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS (original)
+++ python/branches/py3k/Misc/NEWS Wed Sep 29 03:08:05 2010
@@ -260,6 +260,9 @@
Tests
-----
+- Issue #7110: regrtest now sends test failure reports and single-failure
+ tracebacks to stderr rather than stdout.
+
- Issue #9628: fix runtests.sh -x option so more than one test can be excluded.
- Issue #9899: Fix test_tkinter.test_font on various platforms. Patch by
More information about the Python-checkins
mailing list