summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2024-01-10 15:56:40 (GMT)
committerGitHub <noreply@github.com>2024-01-10 15:56:40 (GMT)
commit70497218351ba44bffc8b571201ecb5652d84675 (patch)
tree827293ac5307549be7919ac01081b053a6263b1a
parentf728f7242c6008a16daaa5dde8e1db786857c50e (diff)
downloadcpython-70497218351ba44bffc8b571201ecb5652d84675.zip
cpython-70497218351ba44bffc8b571201ecb5652d84675.tar.gz
cpython-70497218351ba44bffc8b571201ecb5652d84675.tar.bz2
Add @requires_zlib() decorator for gh-109858 tests (GH-113918)
-rw-r--r--Lib/test/test_zipfile/test_core.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_zipfile/test_core.py b/Lib/test/test_zipfile/test_core.py
index 41ce81a..f7b6db4 100644
--- a/Lib/test/test_zipfile/test_core.py
+++ b/Lib/test/test_zipfile/test_core.py
@@ -2272,6 +2272,7 @@ class OtherTests(unittest.TestCase):
with zipfile.ZipFile(zip_file) as zf:
self.assertRaises(RuntimeError, zf.extract, 'a.txt')
+ @requires_zlib()
def test_full_overlap(self):
data = (
b'PK\x03\x04\x14\x00\x00\x00\x08\x00\xa0lH\x05\xe2\x1e'
@@ -2300,6 +2301,7 @@ class OtherTests(unittest.TestCase):
with self.assertRaisesRegex(zipfile.BadZipFile, 'File name.*differ'):
zipf.read('b')
+ @requires_zlib()
def test_quoted_overlap(self):
data = (
b'PK\x03\x04\x14\x00\x00\x00\x08\x00\xa0lH\x05Y\xfc'