]> granicus.if.org Git - python/commitdiff
bpo-19696: Move threaded_import_hangers (GH-14655)
authorKyle Stanley <aeros167@gmail.com>
Fri, 12 Jul 2019 21:22:05 +0000 (17:22 -0400)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 12 Jul 2019 21:22:05 +0000 (14:22 -0700)
Move `threaded_import_hangers`, a dependency of `test_threaded_import`, to the directory `test_importlib/`. Also update the import references for `threaded_import_hangers` in `test_threaded_import`.

https://bugs.python.org/issue19696

Lib/test/test_importlib/test_threaded_import.py
Lib/test/test_importlib/threaded_import_hangers.py [moved from Lib/test/threaded_import_hangers.py with 100% similarity]

index 8607f363db21c0334330d2d431650a0f1fae7f68..d1f64c70fac80fe36870644c3ab601159aed69b5 100644 (file)
@@ -178,11 +178,11 @@ class ThreadedImportTests(unittest.TestCase):
         # In case this test is run again, make sure the helper module
         # gets loaded from scratch again.
         try:
-            del sys.modules['test.threaded_import_hangers']
+            del sys.modules['test.test_importlib.threaded_import_hangers']
         except KeyError:
             pass
-        import test.threaded_import_hangers
-        self.assertFalse(test.threaded_import_hangers.errors)
+        import test.test_importlib.threaded_import_hangers
+        self.assertFalse(test.test_importlib.threaded_import_hangers.errors)
 
     def test_circular_imports(self):
         # The goal of this test is to exercise implementations of the import