From 3af826ebca80f8a6c782fb590c77ac210ae9e22d Mon Sep 17 00:00:00 2001 From: Thomas Wouters Date: Fri, 4 Aug 2000 13:17:51 +0000 Subject: [PATCH] Make test_support.TestSkipped errors work the same way as ImportErrors: mark the test as 'skipped', rather than 'failed'. --- Lib/test/regrtest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- 2.40.0