mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
Make test_support.TestSkipped errors work the same way as ImportErrors:
mark the test as 'skipped', rather than 'failed'.
This commit is contained in:
parent
323a5086ae
commit
3af826ebca
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue