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
|
@ -30,11 +30,10 @@ def test_import_hangers():
|
||||||
if verbose:
|
if verbose:
|
||||||
print "testing import hangers ...",
|
print "testing import hangers ...",
|
||||||
|
|
||||||
from test import threaded_import_hangers
|
import test.threaded_import_hangers
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if threaded_import_hangers.errors:
|
if test.threaded_import_hangers.errors:
|
||||||
raise TestFailed(threaded_import_hangers.errors)
|
raise TestFailed(test.threaded_import_hangers.errors)
|
||||||
elif verbose:
|
elif verbose:
|
||||||
print "OK."
|
print "OK."
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Reference in New Issue