From 692ec14ece5ed2356e07ca73076ecbfbfe14655f Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Wed, 8 Sep 2004 14:48:46 +0000 Subject: [PATCH] Only SystemExit exception from test module indicates failure. Other exceptions indicator error in the test, so should not be caught. [SVN r24973] --- test/test_all.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_all.py b/test/test_all.py index c0dca9f82..aad17e491 100644 --- a/test/test_all.py +++ b/test/test_all.py @@ -31,7 +31,7 @@ def run_tests(critical_tests, other_tests): print ("%-25s : " %(i)), try: __import__(i) - except: + except SystemExit: print "FAILED" if failures_count == 0: f = open(os.path.join(invocation_dir, 'test_results.txt'), 'w')