From: Roman Yurchak Date: Tue, 24 Mar 2020 19:02:53 +0000 (+0100) Subject: bpo-40029 mark test_importlib.test_zip as requiring zlib (#19105) X-Git-Tag: v3.9.0a6~284 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=15e5024d04fc89d948ae761d88048bc58a56b650;p=thirdparty%2FPython%2Fcpython.git 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 --- diff --git a/Lib/test/test_importlib/test_zip.py b/Lib/test/test_importlib/test_zip.py index 9568c226af03..9466ca4a5f42 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