Skip to content

Commit d50f67b

Browse files
committed
Adjust test case to be more consistent with other cases
1 parent cc555cf commit d50f67b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/test/test_zipfile/test_core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5893,10 +5893,10 @@ def test_truncated_data_for_stripped_id(self):
58935893

58945894
def test_truncated_data_for_nonstripped_id(self):
58955895
s = struct.Struct("<HH")
5896-
a = s.pack(self.ZIP64_EXTRA, 3) + b"a"
5897-
b = s.pack(2, 2) + b"bb"
5896+
a = s.pack(self.ZIP64_EXTRA, 1) + b"a"
5897+
b = s.pack(2, 4) + b"bb"
58985898

5899-
self.assertEqual(b+a, self.strip_extra(b+a, (3,)))
5899+
self.assertEqual(b, self.strip_extra(a+b, (self.ZIP64_EXTRA,)))
59005900

59015901
def test_too_short(self):
59025902
self.assertEqual(b"", self.strip_extra(b"", (self.ZIP64_EXTRA,)))

0 commit comments

Comments
 (0)