mirror of
https://github.com/python/cpython.git
synced 2025-11-03 15:11:34 +00:00
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
This commit is contained in:
parent
93460d097f
commit
15e5024d04
1 changed files with 4 additions and 0 deletions
|
|
@ -7,7 +7,10 @@
|
||||||
)
|
)
|
||||||
from importlib.resources import path
|
from importlib.resources import path
|
||||||
|
|
||||||
|
from test.support import requires_zlib
|
||||||
|
|
||||||
|
|
||||||
|
@requires_zlib
|
||||||
class TestZip(unittest.TestCase):
|
class TestZip(unittest.TestCase):
|
||||||
root = 'test.test_importlib.data'
|
root = 'test.test_importlib.data'
|
||||||
|
|
||||||
|
|
@ -47,6 +50,7 @@ def test_files(self):
|
||||||
assert '.whl/' in path, path
|
assert '.whl/' in path, path
|
||||||
|
|
||||||
|
|
||||||
|
@requires_zlib
|
||||||
class TestEgg(TestZip):
|
class TestEgg(TestZip):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
# Find the path to the example-*.egg so we can add it to the front of
|
# Find the path to the example-*.egg so we can add it to the front of
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue