mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Finish properly hiding importlib implementation code.
This commit is contained in:
parent
e9103d2619
commit
f87e04d339
12 changed files with 43 additions and 55 deletions
|
@ -1,4 +1,4 @@
|
|||
import importlib
|
||||
from importlib import _bootstrap
|
||||
from . import util as source_util
|
||||
import unittest
|
||||
|
||||
|
@ -10,7 +10,7 @@ class PathHookTest(unittest.TestCase):
|
|||
def test_success(self):
|
||||
# XXX Only work on existing directories?
|
||||
with source_util.create_modules('dummy') as mapping:
|
||||
self.assert_(hasattr(importlib.FileFinder(mapping['.root']),
|
||||
self.assert_(hasattr(_bootstrap._FileFinder(mapping['.root']),
|
||||
'find_module'))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue