Mercurial > cpython-lru_cache-weakref
diff Lib/importlib/test/source/test_source_encoding.py @ 76478:1da623513b26
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.
| author | Brett Cannon <brett@python.org> |
|---|---|
| date | Sun, 22 Apr 2012 19:58:33 -0400 |
| parents | 2dd046be2c88 |
| children |
line wrap: on
line diff
--- a/Lib/importlib/test/source/test_source_encoding.py Sun Apr 22 13:30:07 2012 -0400 +++ b/Lib/importlib/test/source/test_source_encoding.py Sun Apr 22 19:58:33 2012 -0400 @@ -35,7 +35,7 @@ with source_util.create_modules(self.module_name) as mapping: with open(mapping[self.module_name], 'wb') as file: file.write(source) - loader = _bootstrap._SourceFileLoader(self.module_name, + loader = _bootstrap.SourceFileLoader(self.module_name, mapping[self.module_name]) return loader.load_module(self.module_name) @@ -97,7 +97,7 @@ with source_util.create_modules(module_name) as mapping: with open(mapping[module_name], 'wb') as file: file.write(source) - loader = _bootstrap._SourceFileLoader(module_name, + loader = _bootstrap.SourceFileLoader(module_name, mapping[module_name]) return loader.load_module(module_name)
