Commits

Anonymous committed 0bf9e30

Repair KeyError when running test_threaded_import under -R,
as reported by Neal on python-dev.

  • Participants
  • Parent commits 0b95a0a
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Lib/test/test_threaded_import.py

     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: