diff options
| author | Benjamin Peterson <benjamin@python.org> | 2009-03-26 21:10:30 (GMT) |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2009-03-26 21:10:30 (GMT) |
| commit | bec087f29d7dca0aaf8f51be7d7c135e9b84e7f1 (patch) | |
| tree | b7e37c8e82279a3a58d768ec4a79fd51488521f7 /Lib/test/test_threaded_import.py | |
| parent | ad57d97596bb9466e6fce0c3dfcf436fd5c36ff9 (diff) | |
| download | cpython-bec087f29d7dca0aaf8f51be7d7c135e9b84e7f1.zip cpython-bec087f29d7dca0aaf8f51be7d7c135e9b84e7f1.tar.gz cpython-bec087f29d7dca0aaf8f51be7d7c135e9b84e7f1.tar.bz2 | |
fix incorrect auto-translation of TestSkipped -> unittest.SkipTest
Diffstat (limited to 'Lib/test/test_threaded_import.py')
| -rw-r--r-- | Lib/test/test_threaded_import.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_threaded_import.py b/Lib/test/test_threaded_import.py index dc88a8b..fdbd7b7 100644 --- a/Lib/test/test_threaded_import.py +++ b/Lib/test/test_threaded_import.py @@ -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: |
