Skip to content

Commit 4eae06b

Browse files
committed
Make strip_extra a direct class property in the test
1 parent f334193 commit 4eae06b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Lib/test/test_zipfile/test_core.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5840,9 +5840,7 @@ class StripExtraTests(unittest.TestCase):
58405840

58415841
ZIP64_EXTRA = 1
58425842

5843-
@classmethod
5844-
def setUpClass(cls):
5845-
cls.strip_extra = staticmethod(zipfile.ZipFile._strip_extra_fields)
5843+
strip_extra = staticmethod(zipfile.ZipFile._strip_extra_fields)
58465844

58475845
def test_no_data(self):
58485846
s = struct.Struct("<HH")

0 commit comments

Comments
 (0)