Mercurial > cpython-lru_cache-weakref
changeset 74202:656fa057aa28
Fix no-op tests in importlib.
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Fri, 30 Dec 2011 21:26:08 +0100 |
| parents | f2b9f1d1dd6e (current diff) cd30304713ae (diff) |
| children | dbd3013c2685 |
| files | |
| diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Lib/importlib/test/source/test_file_loader.py Fri Dec 30 13:47:49 2011 -0600 +++ b/Lib/importlib/test/source/test_file_loader.py Fri Dec 30 21:26:08 2011 +0100 @@ -256,6 +256,8 @@ with open(bytecode_path, 'rb') as file: self.assertGreater(len(file.read()), 8) + self._test_magic_only(test) + @source_util.writes_bytecode_files def test_bad_magic(self): # When the magic number is different, the bytecode should be @@ -276,6 +278,8 @@ with open(bc_path, 'rb') as file: self.assertGreater(len(file.read()), 8) + self._test_partial_timestamp(test) + @source_util.writes_bytecode_files def test_no_marshal(self): # When there is only the magic number and timestamp, raise EOFError.
