Make test_support.TestSkipped errors work the same way as ImportErrors:

mark the test as 'skipped', rather than 'failed'.
This commit is contained in:
Thomas Wouters 2000-08-04 13:17:51 +00:00
parent 323a5086ae
commit 3af826ebca
1 changed files with 1 additions and 1 deletions

View File

@ -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]