[Python-checkins] bpo-40029 mark test_importlib.test_zip as requiring zlib (#19105)
Roman Yurchak
webhook-mailer at python.org
Tue Mar 24 15:03:02 EDT 2020
https://github.com/python/cpython/commit/15e5024d04fc89d948ae761d88048bc58a56b650
commit: 15e5024d04fc89d948ae761d88048bc58a56b650
branch: master
author: Roman Yurchak <rth.yurchak at gmail.com>
committer: GitHub <noreply at github.com>
date: 2020-03-24T15:02:53-04:00
summary:
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
files:
M Lib/test/test_importlib/test_zip.py
diff --git a/Lib/test/test_importlib/test_zip.py b/Lib/test/test_importlib/test_zip.py
index 9568c226af033..9466ca4a5f424 100644
--- a/Lib/test/test_importlib/test_zip.py
+++ b/Lib/test/test_importlib/test_zip.py
@@ -7,7 +7,10 @@
)
from importlib.resources import path
+from test.support import requires_zlib
+
+ at requires_zlib
class TestZip(unittest.TestCase):
root = 'test.test_importlib.data'
@@ -47,6 +50,7 @@ def test_files(self):
assert '.whl/' in path, path
+ at requires_zlib
class TestEgg(TestZip):
def setUp(self):
# Find the path to the example-*.egg so we can add it to the front of
More information about the Python-checkins
mailing list