Mercurial > cpython-lru_cache-weakref
diff Lib/importlib/test/source/test_source_encoding.py @ 52142:04a5b6438526
Finish properly hiding importlib implementation code.
| author | Brett Cannon <bcannon@gmail.com> |
|---|---|
| date | Thu, 12 Mar 2009 22:47:53 +0000 |
| parents | ee7029710c05 |
| children | b65ebed06eb0 |
line wrap: on
line diff
--- a/Lib/importlib/test/source/test_source_encoding.py Thu Mar 12 22:37:06 2009 +0000 +++ b/Lib/importlib/test/source/test_source_encoding.py Thu Mar 12 22:47:53 2009 +0000 @@ -1,4 +1,4 @@ -import importlib +from importlib import _bootstrap from . import util as source_util import codecs @@ -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 = importlib.PyPycFileLoader(self.module_name, + loader = _bootstrap._PyPycFileLoader(self.module_name, mapping[self.module_name], False) return loader.load_module(self.module_name) @@ -96,8 +96,8 @@ with source_util.create_modules(module_name) as mapping: with open(mapping[module_name], 'wb') as file: file.write(source) - loader = importlib.PyPycFileLoader(module_name, mapping[module_name], - False) + loader = _bootstrap._PyPycFileLoader(module_name, + mapping[module_name], False) return loader.load_module(module_name) # [cr]
