diff options
author | Thomas Wouters <thomas@python.org> | 2000-08-04 13:17:51 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2000-08-04 13:17:51 (GMT) |
commit | 3af826ebca80f8a6c782fb590c77ac210ae9e22d (patch) | |
tree | f01ecd0a235364c6ab5dd7fc83fffde32821c44b /Lib | |
parent | 323a5086ae3ebc4e6290d9bbbe384af5a952a485 (diff) | |
download | cpython-3af826ebca80f8a6c782fb590c77ac210ae9e22d.zip cpython-3af826ebca80f8a6c782fb590c77ac210ae9e22d.tar.gz cpython-3af826ebca80f8a6c782fb590c77ac210ae9e22d.tar.bz2 |
Make test_support.TestSkipped errors work the same way as ImportErrors:
mark the test as 'skipped', rather than 'failed'.
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/test/regrtest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 69bbf14..9b2466f 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] |