Skip to content

Commit 417a46f

Browse files
Add @requires_zlib() decorator for gh-109858 tests
1 parent 66363b9 commit 417a46f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_zipfile/test_core.py

+2
Original file line numberDiff line numberDiff line change
@@ -2272,6 +2272,7 @@ def test_decompress_without_3rd_party_library(self):
22722272
with zipfile.ZipFile(zip_file) as zf:
22732273
self.assertRaises(RuntimeError, zf.extract, 'a.txt')
22742274

2275+
@requires_zlib()
22752276
def test_full_overlap(self):
22762277
data = (
22772278
b'PK\x03\x04\x14\x00\x00\x00\x08\x00\xa0lH\x05\xe2\x1e'
@@ -2300,6 +2301,7 @@ def test_full_overlap(self):
23002301
with self.assertRaisesRegex(zipfile.BadZipFile, 'File name.*differ'):
23012302
zipf.read('b')
23022303

2304+
@requires_zlib()
23032305
def test_quoted_overlap(self):
23042306
data = (
23052307
b'PK\x03\x04\x14\x00\x00\x00\x08\x00\xa0lH\x05Y\xfc'

0 commit comments

Comments
 (0)