mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
remove test_support.TestSkipped and just use unittest.SkipTest
This commit is contained in:
parent
21f6aac633
commit
888a39b54c
44 changed files with 99 additions and 108 deletions
|
|
@ -132,6 +132,7 @@ import sys
|
|||
import time
|
||||
import traceback
|
||||
import warnings
|
||||
import unittest
|
||||
|
||||
# I see no other way to suppress these warnings;
|
||||
# putting them in test_grammar.py has no effect:
|
||||
|
|
@ -567,7 +568,7 @@ def runtest_inner(test, verbose, quiet, test_times,
|
|||
print test, "skipped --", msg
|
||||
sys.stdout.flush()
|
||||
return -2
|
||||
except (ImportError, test_support.TestSkipped), msg:
|
||||
except (ImportError, unittest.SkipTest), msg:
|
||||
if not quiet:
|
||||
print test, "skipped --", msg
|
||||
sys.stdout.flush()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue