mirror of
https://github.com/python/cpython
synced 2026-09-29 11:55:30 +03:00
Add @requires_zlib() decorator for gh-109858 tests (GH-113918)
This commit is contained in:
parent
f728f7242c
commit
7049721835
1 changed files with 2 additions and 0 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue