diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-06-19 08:14:28 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-06-19 08:14:28 (GMT) |
commit | 5c298438b0df2e1f184cbc3dd37538d2b2c48176 (patch) | |
tree | e1e23977a8df18fdf16a6b2e387c5f4c1869c157 | |
parent | 05fdbf15bac6ce2a2712484d5e05bab8f320a58d (diff) | |
download | cpython-5c298438b0df2e1f184cbc3dd37538d2b2c48176.zip cpython-5c298438b0df2e1f184cbc3dd37538d2b2c48176.tar.gz cpython-5c298438b0df2e1f184cbc3dd37538d2b2c48176.tar.bz2 |
Repair KeyError when running test_threaded_import under -R,
as reported by Neal on python-dev.
-rw-r--r-- | Lib/test/test_threaded_import.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/test/test_threaded_import.py b/Lib/test/test_threaded_import.py index 0642d25..602ad2a 100644 --- a/Lib/test/test_threaded_import.py +++ b/Lib/test/test_threaded_import.py @@ -30,11 +30,10 @@ def test_import_hangers(): 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: |