]> granicus.if.org Git - python/commitdiff
Fix no-op tests in importlib.
authorAntoine Pitrou <solipsis@pitrou.net>
Fri, 30 Dec 2011 20:25:15 +0000 (21:25 +0100)
committerAntoine Pitrou <solipsis@pitrou.net>
Fri, 30 Dec 2011 20:25:15 +0000 (21:25 +0100)
Lib/importlib/test/source/test_file_loader.py

index 20280927273924738c3c133dfedf0b720a7fbb7f..de1c4d8a014aae1cec55c588791a5e34a400ecb8 100644 (file)
@@ -256,6 +256,8 @@ class SourceLoaderBadBytecodeTest(BadBytecodeTest):
             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 @@ class SourceLoaderBadBytecodeTest(BadBytecodeTest):
             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.