summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_importlib/test_zip.py
diff options
context:
space:
mode:
authorHai Shi <shihai1992@gmail.com>2020-05-18 22:02:57 (GMT)
committerGitHub <noreply@github.com>2020-05-18 22:02:57 (GMT)
commita3ec3ad9e20e7d9ed148d4cfbd22aebec608b42a (patch)
treebece391e5fb7dfc20ddb2d2e30d63ca5d4662996 /Lib/test/test_importlib/test_zip.py
parentced4e5c22756fde3e97327642c159f6699815caa (diff)
downloadcpython-a3ec3ad9e20e7d9ed148d4cfbd22aebec608b42a.zip
cpython-a3ec3ad9e20e7d9ed148d4cfbd22aebec608b42a.tar.gz
cpython-a3ec3ad9e20e7d9ed148d4cfbd22aebec608b42a.tar.bz2
bpo-40275: More lazy imports in test.support (GH-20131)
Make the the following imports lazy in test.support: * bz2 * gzip * lzma * resource * zlib The following test.support decorators now need to be called with parenthesis: * @support.requires_bz2 * @support.requires_gzip * @support.requires_lzma * @support.requires_zlib For example, "@requires_zlib" becomes "@requires_zlib()".
Diffstat (limited to 'Lib/test/test_importlib/test_zip.py')
-rw-r--r--Lib/test/test_importlib/test_zip.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_importlib/test_zip.py b/Lib/test/test_importlib/test_zip.py
index 9466ca4..fa87cd7 100644
--- a/Lib/test/test_importlib/test_zip.py
+++ b/Lib/test/test_importlib/test_zip.py
@@ -10,7 +10,7 @@ from importlib.resources import path
from test.support import requires_zlib
-@requires_zlib
+@requires_zlib()
class TestZip(unittest.TestCase):
root = 'test.test_importlib.data'
@@ -50,7 +50,7 @@ class TestZip(unittest.TestCase):
assert '.whl/' in path, path
-@requires_zlib
+@requires_zlib()
class TestEgg(TestZip):
def setUp(self):
# Find the path to the example-*.egg so we can add it to the front of