[Python-checkins] bpo-19696: Move threaded_import_hangers (GH-14655)

Miss Islington (bot) webhook-mailer at python.org
Fri Jul 12 17:22:26 EDT 2019


https://github.com/python/cpython/commit/a65c977552507dd19d2cc073fc91ae22cc66bbff
commit: a65c977552507dd19d2cc073fc91ae22cc66bbff
branch: master
author: Kyle Stanley <aeros167 at gmail.com>
committer: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
date: 2019年07月12日T14:22:05-07:00
summary:
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
files:
A Lib/test/test_importlib/threaded_import_hangers.py
D Lib/test/threaded_import_hangers.py
M Lib/test/test_importlib/test_threaded_import.py
diff --git a/Lib/test/test_importlib/test_threaded_import.py b/Lib/test/test_importlib/test_threaded_import.py
index 8607f363db21..d1f64c70fac8 100644
--- a/Lib/test/test_importlib/test_threaded_import.py
+++ b/Lib/test/test_importlib/test_threaded_import.py
@@ -178,11 +178,11 @@ def test_import_hangers(self):
 # 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
diff --git a/Lib/test/threaded_import_hangers.py b/Lib/test/test_importlib/threaded_import_hangers.py
similarity index 100%
rename from Lib/test/threaded_import_hangers.py
rename to Lib/test/test_importlib/threaded_import_hangers.py


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /