mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Fix no-op tests in importlib.
This commit is contained in:
parent
79ed84c7f2
commit
7c9907e565
1 changed files with 4 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue