mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
fix incorrect auto-translation of TestSkipped -> unittest.SkipTest
This commit is contained in:
parent
ad57d97596
commit
bec087f29d
31 changed files with 75 additions and 75 deletions
|
|
@ -1,13 +1,12 @@
|
|||
import unittest
|
||||
import sys
|
||||
from test.test_support import (check_warnings, CleanImport,
|
||||
SkipTest, run_unittest)
|
||||
from test.test_support import check_warnings, CleanImport, run_unittest
|
||||
import warnings
|
||||
|
||||
from contextlib import nested
|
||||
|
||||
if not sys.py3kwarning:
|
||||
raise SkipTest('%s must be run with the -3 flag' % __name__)
|
||||
raise unittest.SkipTest('%s must be run with the -3 flag' % __name__)
|
||||
|
||||
def reset_module_registry(module):
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue