mirror of
https://github.com/python/cpython.git
synced 2025-10-25 10:44:55 +00:00
Issue #19721: Consolidate test_importlib utility code into a single
module.
This commit is contained in:
parent
91795c8e34
commit
732ac654c8
25 changed files with 249 additions and 270 deletions
|
|
@ -1,5 +1,4 @@
|
|||
from .. import util
|
||||
from . import util as source_util
|
||||
|
||||
machinery = util.import_importlib('importlib.machinery')
|
||||
|
||||
|
|
@ -15,7 +14,7 @@ def path_hook(self):
|
|||
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'))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue