From 9e48b272b96aabf597b7aedd358ab890ddbf4c98 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 16 Jul 1997 01:56:13 +0000 Subject: Catch all exceptions in test modules. --- Lib/test/regrtest.py | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v0.12