diff options
author | Roman Yurchak <rth.yurchak@gmail.com> | 2020-03-24 19:02:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-24 19:02:53 (GMT) |
commit | 15e5024d04fc89d948ae761d88048bc58a56b650 (patch) | |
tree | ea1fb19f9a2676ce76fa2477e3d97e6e96b118ac /Lib | |
parent | 93460d097f50db0870161a63911d61ce3c5f4583 (diff) | |
download | cpython-15e5024d04fc89d948ae761d88048bc58a56b650.zip cpython-15e5024d04fc89d948ae761d88048bc58a56b650.tar.gz cpython-15e5024d04fc89d948ae761d88048bc58a56b650.tar.bz2 |
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
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_importlib/test_zip.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_importlib/test_zip.py b/Lib/test/test_importlib/test_zip.py index 9568c22..9466ca4 100644 --- a/Lib/test/test_importlib/test_zip.py +++ b/Lib/test/test_importlib/test_zip.py @@ -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 |