@@ -1961,7 +1961,7 @@ def test_repack_file_entry_before_first_file(self):
19611961 with zipfile .ZipFile (TESTFN ) as zh :
19621962 self .assertIsNone (zh .testzip ())
19631963
1964- @without_source_date_epoch # it would override the time mock below
1964+ @without_source_date_epoch # SOURCE_DATE_EPOCH would bypass the time mock below
19651965 @mock .patch .object (time , 'time' , new = lambda : 315590400 ) # fix time for ZipFile.writestr()
19661966 def test_repack_bytes_before_removed_files (self ):
19671967 """Should preserve if there are bytes before stale local file entries."""
@@ -2006,7 +2006,7 @@ def test_repack_bytes_before_removed_files(self):
20062006 with zipfile .ZipFile (TESTFN ) as zh :
20072007 self .assertIsNone (zh .testzip ())
20082008
2009- @without_source_date_epoch # it would override the time mock below
2009+ @without_source_date_epoch # SOURCE_DATE_EPOCH would bypass the time mock below
20102010 @mock .patch .object (time , 'time' , new = lambda : 315590400 ) # fix time for ZipFile.writestr()
20112011 def test_repack_bytes_after_removed_files (self ):
20122012 """Should keep extra bytes if there are bytes after stale local file entries."""
@@ -2050,7 +2050,7 @@ def test_repack_bytes_after_removed_files(self):
20502050 with zipfile .ZipFile (TESTFN ) as zh :
20512051 self .assertIsNone (zh .testzip ())
20522052
2053- @without_source_date_epoch # it would override the time mock below
2053+ @without_source_date_epoch # SOURCE_DATE_EPOCH would bypass the time mock below
20542054 @mock .patch .object (time , 'time' , new = lambda : 315590400 ) # fix time for ZipFile.writestr()
20552055 def test_repack_bytes_between_removed_files (self ):
20562056 """Should strip only local file entries before random bytes."""
@@ -2255,7 +2255,7 @@ def test_repack_removed_partial(self):
22552255 with zipfile .ZipFile (TESTFN ) as zh :
22562256 self .assertIsNone (zh .testzip ())
22572257
2258- @without_source_date_epoch # it would override the time mock below
2258+ @without_source_date_epoch # SOURCE_DATE_EPOCH would bypass the time mock below
22592259 @mock .patch .object (time , 'time' , new = lambda : 315590400 ) # fix time for ZipFile.writestr()
22602260 def test_repack_removed_bytes_between_files (self ):
22612261 """Should not remove bytes between local file entries."""
0 commit comments