fix incorrect auto-translation of TestSkipped -> unittest.SkipTest

This commit is contained in:
Benjamin Peterson 2009-03-26 21:10:30 +00:00
parent ad57d97596
commit bec087f29d
31 changed files with 75 additions and 75 deletions

View file

@ -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: