Skip to content

Commit 72673e0

Browse files
committed
1 parent 93db94a commit 72673e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_zipfile/test_core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2685,10 +2685,10 @@ def _test_validate_local_file_entry(self, method):
26852685
m_sddnsbd.assert_not_called()
26862686
m_sddns.assert_not_called()
26872687

2688-
# return None if no sufficient header length
2688+
# return None if truncated local file header
26892689
bytes_ = self._generate_local_file_entry(
26902690
'file.txt', b'dummy', compression=method)
2691-
bytes_ = bytes_[:29]
2691+
bytes_ = bytes_[:zipfile.sizeFileHeader - 1]
26922692
fz = io.BytesIO(bytes_)
26932693
with mock.patch.object(repacker, '_scan_data_descriptor',
26942694
wraps=repacker._scan_data_descriptor) as m_sdd, \

0 commit comments

Comments
 (0)