diff options
author | Guido van Rossum <guido@python.org> | 1997-07-16 01:56:13 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-07-16 01:56:13 (GMT) |
commit | 9e48b272b96aabf597b7aedd358ab890ddbf4c98 (patch) | |
tree | 2eed57ab0b8589cd62db421e2f575461d06c3711 /Lib/test | |
parent | 65cd9894414a7b6e2153d7fa431b192cce91916b (diff) | |
download | cpython-9e48b272b96aabf597b7aedd358ab890ddbf4c98.zip cpython-9e48b272b96aabf597b7aedd358ab890ddbf4c98.tar.gz cpython-9e48b272b96aabf597b7aedd358ab890ddbf4c98.tar.bz2 |
Catch all exceptions in test modules.
Diffstat (limited to 'Lib/test')
-rwxr-xr-x | Lib/test/regrtest.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index d6c5081..431863e 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -25,6 +25,7 @@ import sys import string import os import getopt +import traceback import test_support @@ -137,6 +138,11 @@ def runtest(test, generate, verbose2): except test_support.TestFailed, msg: print "test", test, "failed --", msg return 0 + except: + print "test", test, "crashed --", sys.exc_type, ":", sys.exc_value + if verbose2: + traceback.print_exc(file=sys.stdout) + return 0 else: return 1 |