diff options
author | Brett Cannon <brett@python.org> | 2014-05-09 18:32:57 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2014-05-09 18:32:57 (GMT) |
commit | 732ac654c8a3e5f9048a53efaee7380e1775a630 (patch) | |
tree | 29f2569faa5c7c968c3201b8074dc32f6fe06d5f /Lib/test/test_importlib/source/test_path_hook.py | |
parent | 91795c8e34cdae5616b4dd56fe616476dfdc1267 (diff) | |
download | cpython-732ac654c8a3e5f9048a53efaee7380e1775a630.zip cpython-732ac654c8a3e5f9048a53efaee7380e1775a630.tar.gz cpython-732ac654c8a3e5f9048a53efaee7380e1775a630.tar.bz2 |
Issue #19721: Consolidate test_importlib utility code into a single
module.
Diffstat (limited to 'Lib/test/test_importlib/source/test_path_hook.py')
-rw-r--r-- | Lib/test/test_importlib/source/test_path_hook.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_importlib/source/test_path_hook.py b/Lib/test/test_importlib/source/test_path_hook.py index 92da772..08ba018 100644 --- a/Lib/test/test_importlib/source/test_path_hook.py +++ b/Lib/test/test_importlib/source/test_path_hook.py @@ -1,5 +1,4 @@ from .. import util -from . import util as source_util machinery = util.import_importlib('importlib.machinery') @@ -15,7 +14,7 @@ class PathHookTest: self.machinery.SOURCE_SUFFIXES)) def test_success(self): - with source_util.create_modules('dummy') as mapping: + with util.create_modules('dummy') as mapping: self.assertTrue(hasattr(self.path_hook()(mapping['.root']), 'find_module')) |