Repair KeyError when running test_threaded_import under -R,

as reported by Neal on python-dev.
This commit is contained in:
Tim Peters 2006-06-19 08:14:28 +00:00
parent 05fdbf15ba
commit 5c298438b0
1 changed files with 3 additions and 4 deletions

View File

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