mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Repair KeyError when running test_threaded_import under -R,
as reported by Neal on python-dev.
This commit is contained in:
parent
05fdbf15ba
commit
5c298438b0
1 changed files with 3 additions and 4 deletions
|
|
@ -30,11 +30,10 @@ def test_import_hangers():
|
|||
if verbose:
|
||||
print "testing import hangers ...",
|
||||
|
||||
from test import threaded_import_hangers
|
||||
|
||||
import test.threaded_import_hangers
|
||||
try:
|
||||
if threaded_import_hangers.errors:
|
||||
raise TestFailed(threaded_import_hangers.errors)
|
||||
if test.threaded_import_hangers.errors:
|
||||
raise TestFailed(test.threaded_import_hangers.errors)
|
||||
elif verbose:
|
||||
print "OK."
|
||||
finally:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue