[Python-checkins] cpython (3.2): Always print out the traceback when a test "crashed"
antoine.pitrou
python-checkins at python.org
Mon Mar 21 19:56:12 CET 2011
http://hg.python.org/cpython/rev/f51128a6dc24
changeset: 68814:f51128a6dc24
branch: 3.2
parent: 68812:c527ce78ba0c
user: Antoine Pitrou <solipsis at pitrou.net>
date: Mon Mar 21 19:55:16 2011 +0100
summary:
Always print out the traceback when a test "crashed"
files:
Lib/test/regrtest.py
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -995,12 +995,9 @@
sys.stderr.flush()
return FAILED, test_time
except:
- type, value = sys.exc_info()[:2]
- print("test", test, "crashed --", str(type) + ":", value, file=sys.stderr)
+ msg = traceback.format_exc()
+ print("test", test, "crashed --", msg, file=sys.stderr)
sys.stderr.flush()
- if verbose or debug:
- traceback.print_exc(file=sys.stderr)
- sys.stderr.flush()
return FAILED, test_time
else:
if refleak:
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list