Skip to content

Commit 7c9907e

Browse files
committed
Fix no-op tests in importlib.
1 parent 79ed84c commit 7c9907e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/importlib/test/source/test_file_loader.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,8 @@ def test(name, mapping, bytecode_path):
256256
with open(bytecode_path, 'rb') as file:
257257
self.assertGreater(len(file.read()), 8)
258258

259+
self._test_magic_only(test)
260+
259261
@source_util.writes_bytecode_files
260262
def test_bad_magic(self):
261263
# When the magic number is different, the bytecode should be
@@ -276,6 +278,8 @@ def test(name, mapping, bc_path):
276278
with open(bc_path, 'rb') as file:
277279
self.assertGreater(len(file.read()), 8)
278280

281+
self._test_partial_timestamp(test)
282+
279283
@source_util.writes_bytecode_files
280284
def test_no_marshal(self):
281285
# When there is only the magic number and timestamp, raise EOFError.

0 commit comments

Comments
 (0)