[Python-checkins] r47024 - python/trunk/Lib/test/test_threaded_import.py
tim.peters
python-checkins at python.org
Mon Jun 19 10:14:28 CEST 2006
Author: tim.peters
Date: Mon Jun 19 10:14:28 2006
New Revision: 47024
Modified:
python/trunk/Lib/test/test_threaded_import.py
Log:
Repair KeyError when running test_threaded_import under -R,
as reported by Neal on python-dev.
Modified: python/trunk/Lib/test/test_threaded_import.py
==============================================================================
--- python/trunk/Lib/test/test_threaded_import.py (original)
+++ python/trunk/Lib/test/test_threaded_import.py Mon Jun 19 10:14:28 2006
@@ -30,11 +30,10 @@
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:
More information about the Python-checkins
mailing list