summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/test/source/test_file_loader.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-12-30 20:25:15 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-12-30 20:25:15 (GMT)
commit7c9907e565ae43f910acc5ebd1dae9fc0487de9c (patch)
tree8920e6469a8058b84aab0a694fd1667d90e841fc /Lib/importlib/test/source/test_file_loader.py
parent79ed84c7f2837239d5285ee33683cf0a52102529 (diff)
downloadcpython-7c9907e565ae43f910acc5ebd1dae9fc0487de9c.zip
cpython-7c9907e565ae43f910acc5ebd1dae9fc0487de9c.tar.gz
cpython-7c9907e565ae43f910acc5ebd1dae9fc0487de9c.tar.bz2
Fix no-op tests in importlib.
Diffstat (limited to 'Lib/importlib/test/source/test_file_loader.py')
-rw-r--r--Lib/importlib/test/source/test_file_loader.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/importlib/test/source/test_file_loader.py b/Lib/importlib/test/source/test_file_loader.py
index 2028092..de1c4d8 100644
--- a/Lib/importlib/test/source/test_file_loader.py
+++ b/Lib/importlib/test/source/test_file_loader.py
@@ -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.