diff options
Diffstat (limited to 'Lib/test/regrtest.py')
-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 |