Skip to content

Commit 15e5024

Browse files
authored
bpo-40029 mark test_importlib.test_zip as requiring zlib (#19105)
* bpo-40029 mark test_importlib.test_zip as requiring zlib * Decorate TestZip / TestEgg classes as requiring zlib
1 parent 93460d0 commit 15e5024

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/test/test_importlib/test_zip.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
)
88
from importlib.resources import path
99

10+
from test.support import requires_zlib
1011

12+
13+
@requires_zlib
1114
class TestZip(unittest.TestCase):
1215
root = 'test.test_importlib.data'
1316

@@ -47,6 +50,7 @@ def test_files(self):
4750
assert '.whl/' in path, path
4851

4952

53+
@requires_zlib
5054
class TestEgg(TestZip):
5155
def setUp(self):
5256
# Find the path to the example-*.egg so we can add it to the front of

0 commit comments

Comments
 (0)