Skip to content

Commit a65c977

Browse files
aerosmiss-islington
authored andcommitted
bpo-19696: Move threaded_import_hangers (GH-14655)
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
1 parent c8e7146 commit a65c977

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Lib/test/test_importlib/test_threaded_import.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,11 @@ def test_import_hangers(self):
178178
# In case this test is run again, make sure the helper module
179179
# gets loaded from scratch again.
180180
try:
181-
del sys.modules['test.threaded_import_hangers']
181+
del sys.modules['test.test_importlib.threaded_import_hangers']
182182
except KeyError:
183183
pass
184-
import test.threaded_import_hangers
185-
self.assertFalse(test.threaded_import_hangers.errors)
184+
import test.test_importlib.threaded_import_hangers
185+
self.assertFalse(test.test_importlib.threaded_import_hangers.errors)
186186

187187
def test_circular_imports(self):
188188
# The goal of this test is to exercise implementations of the import

0 commit comments

Comments
 (0)