]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40029 mark test_importlib.test_zip as requiring zlib (#19105)
authorRoman Yurchak <rth.yurchak@gmail.com>
Tue, 24 Mar 2020 19:02:53 +0000 (20:02 +0100)
committerGitHub <noreply@github.com>
Tue, 24 Mar 2020 19:02:53 +0000 (15:02 -0400)
* bpo-40029 mark test_importlib.test_zip as requiring zlib

* Decorate TestZip / TestEgg classes as requiring zlib

Lib/test/test_importlib/test_zip.py

index 9568c226af033d08d10d77ccd036eb6863dfa6e5..9466ca4a5f424df288c65cfd40f577a7416c2270 100644 (file)
@@ -7,7 +7,10 @@ from importlib.metadata import (
 )
 from importlib.resources import path
 
+from test.support import requires_zlib
 
+
+@requires_zlib
 class TestZip(unittest.TestCase):
     root = 'test.test_importlib.data'
 
@@ -47,6 +50,7 @@ class TestZip(unittest.TestCase):
             assert '.whl/' in path, path
 
 
+@requires_zlib
 class TestEgg(TestZip):
     def setUp(self):
         # Find the path to the example-*.egg so we can add it to the front of