mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +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
|
|
@ -6,7 +6,7 @@
|
|||
# randrange, and then Python hangs.
|
||||
|
||||
import thread
|
||||
from test.test_support import verbose, SkipTest, TestFailed
|
||||
from test.test_support import verbose, TestFailed
|
||||
|
||||
critical_section = thread.allocate_lock()
|
||||
done = thread.allocate_lock()
|
||||
|
|
@ -56,7 +56,7 @@ def test_main(): # magic name! see above
|
|||
import imp
|
||||
if imp.lock_held():
|
||||
# This triggers on, e.g., from test import autotest.
|
||||
raise SkipTest("can't run when import lock is held")
|
||||
raise unittest.SkipTest("can't run when import lock is held")
|
||||
|
||||
done.acquire()
|
||||
for N in (20, 50) * 3:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue