diff options
author | Brett Cannon <brett@python.org> | 2012-01-25 23:58:03 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2012-01-25 23:58:03 (GMT) |
commit | c264e3ee206d5e5d1cb2aeff2cb0cd864dce83c8 (patch) | |
tree | dd9152609b6e0afb824d9aa731cae056e0cb1cb1 /Lib/importlib/test | |
parent | b0f30c9891a3ef45d616bf3ae73d764fd539946b (diff) | |
download | cpython-c264e3ee206d5e5d1cb2aeff2cb0cd864dce83c8.zip cpython-c264e3ee206d5e5d1cb2aeff2cb0cd864dce83c8.tar.gz cpython-c264e3ee206d5e5d1cb2aeff2cb0cd864dce83c8.tar.bz2 |
Move some code from importlib.__init__ to importlib._bootstrap that
does not need to be exposed from C code for bootstrapping reasons.
Diffstat (limited to 'Lib/importlib/test')
-rw-r--r-- | Lib/importlib/test/source/test_abc_loader.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/importlib/test/source/test_abc_loader.py b/Lib/importlib/test/source/test_abc_loader.py index be81992..01acda4 100644 --- a/Lib/importlib/test/source/test_abc_loader.py +++ b/Lib/importlib/test/source/test_abc_loader.py @@ -42,8 +42,8 @@ class SourceLoaderMock(SourceOnlyLoaderMock): self.bytecode_path = imp.cache_from_source(self.path) self.source_size = len(self.source) data = bytearray(magic) - data.extend(marshal._w_long(self.source_mtime)) - data.extend(marshal._w_long(self.source_size)) + data.extend(importlib._w_long(self.source_mtime)) + data.extend(importlib._w_long(self.source_size)) code_object = compile(self.source, self.path, 'exec', dont_inherit=True) data.extend(marshal.dumps(code_object)) @@ -658,8 +658,8 @@ class SourceLoaderBytecodeTests(SourceLoaderTestHarness): if bytecode_written: self.assertIn(self.cached, self.loader.written) data = bytearray(imp.get_magic()) - data.extend(marshal._w_long(self.loader.source_mtime)) - data.extend(marshal._w_long(self.loader.source_size)) + data.extend(importlib._w_long(self.loader.source_mtime)) + data.extend(importlib._w_long(self.loader.source_size)) data.extend(marshal.dumps(code_object)) self.assertEqual(self.loader.written[self.cached], bytes(data)) |