mirror of
https://github.com/python/cpython.git
synced 2025-10-25 10:44:55 +00:00
Issue #14605: Expose importlib.abc.FileLoader and
importlib.machinery.(FileFinder, SourceFileLoader, _SourcelessFileLoader, ExtensionFileLoader). This exposes all of importlib's mechanisms that will become public on the sys module.
This commit is contained in:
parent
8c5e920ae3
commit
938d44d59c
17 changed files with 3246 additions and 3076 deletions
|
|
@ -14,7 +14,8 @@ class PathHookTests(unittest.TestCase):
|
|||
# XXX Should it only work for directories containing an extension module?
|
||||
|
||||
def hook(self, entry):
|
||||
return _bootstrap._file_path_hook(entry)
|
||||
return _bootstrap.FileFinder.path_hook((_bootstrap.ExtensionFileLoader,
|
||||
_bootstrap._suffix_list(imp.C_EXTENSION), False))(entry)
|
||||
|
||||
def test_success(self):
|
||||
# Path hook should handle a directory where a known extension module
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue