Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3af826e

Browse files
committed
Make test_support.TestSkipped errors work the same way as ImportErrors:
mark the test as 'skipped', rather than 'failed'.
1 parent 323a508 commit 3af826e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/regrtest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def runtest(test, generate, verbose, testdir = None):
227227
cfp.close()
228228
finally:
229229
sys.stdout = save_stdout
230-
except ImportError, msg:
230+
except (ImportError, test_support.TestSkipped), msg:
231231
return -1
232232
except KeyboardInterrupt, v:
233233
raise KeyboardInterrupt, v, sys.exc_info()[2]

0 commit comments

Comments
 (0)