projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46719af
)
Always print out the traceback when a test "crashed"
author
Antoine Pitrou
<solipsis@pitrou.net>
Mon, 21 Mar 2011 18:55:16 +0000
(19:55 +0100)
committer
Antoine Pitrou
<solipsis@pitrou.net>
Mon, 21 Mar 2011 18:55:16 +0000
(19:55 +0100)
Lib/test/regrtest.py
patch
|
blob
|
history
diff --git
a/Lib/test/regrtest.py
b/Lib/test/regrtest.py
index 440c09c3ae8c6094777fdd4cd2ccb996247cf516..238f27600936241b1843eda906d907c8cea50e87 100755
(executable)
--- a/
Lib/test/regrtest.py
+++ b/
Lib/test/regrtest.py
@@
-995,12
+995,9
@@
def runtest_inner(test, verbose, quiet, huntrleaks=False, debug=False):
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: