summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2000-08-04 13:17:51 (GMT)
committerThomas Wouters <thomas@python.org>2000-08-04 13:17:51 (GMT)
commit3af826ebca80f8a6c782fb590c77ac210ae9e22d (patch)
treef01ecd0a235364c6ab5dd7fc83fffde32821c44b /Lib
parent323a5086ae3ebc4e6290d9bbbe384af5a952a485 (diff)
downloadcpython-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-xLib/test/regrtest.py2
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]