File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Lib/test/test_importlib/source Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -635,7 +635,7 @@ def test_bad_marshal(self):
635
635
def test_old_timestamp (self ):
636
636
# When the timestamp is older than the source, bytecode should be
637
637
# regenerated.
638
- zeros = b'\x00 \x00 \x00 \x00 '
638
+ zeros = b'\x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 '
639
639
with util .create_modules ('_temp' ) as mapping :
640
640
py_compile .compile (mapping ['_temp' ])
641
641
bytecode_path = self .util .cache_from_source (mapping ['_temp' ])
@@ -644,10 +644,10 @@ def test_old_timestamp(self):
644
644
bytecode_file .write (zeros )
645
645
self .import_ (mapping ['_temp' ], '_temp' )
646
646
source_mtime = os .path .getmtime (mapping ['_temp' ])
647
- source_timestamp = self .importlib ._pack_uint32 (source_mtime )
647
+ source_timestamp = self .importlib ._pack_uint64 (source_mtime )
648
648
with open (bytecode_path , 'rb' ) as bytecode_file :
649
649
bytecode_file .seek (8 )
650
- self .assertEqual (bytecode_file .read (4 ), source_timestamp )
650
+ self .assertEqual (bytecode_file .read (8 ), source_timestamp )
651
651
652
652
# [bytecode read-only]
653
653
@util .writes_bytecode_files
You can’t perform that action at this time.
0 commit comments