From: Thomas Wouters Date: Fri, 4 Aug 2000 13:17:51 +0000 (+0000) Subject: Make test_support.TestSkipped errors work the same way as ImportErrors: X-Git-Tag: v2.0b1~575 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3af826ebca80f8a6c782fb590c77ac210ae9e22d;p=python Make test_support.TestSkipped errors work the same way as ImportErrors: mark the test as 'skipped', rather than 'failed'. --- diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 69bbf14b1e..9b2466fd4e 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -227,7 +227,7 @@ def runtest(test, generate, verbose, testdir = None): cfp.close() finally: sys.stdout = save_stdout - except ImportError, msg: + except (ImportError, test_support.TestSkipped), msg: return -1 except KeyboardInterrupt, v: raise KeyboardInterrupt, v, sys.exc_info()[2]