Commit 5c298438 authored by Tim Peters's avatar Tim Peters

Repair KeyError when running test_threaded_import under -R,

as reported by Neal on python-dev.
parent 05fdbf15
...@@ -30,11 +30,10 @@ def test_import_hangers(): ...@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment