summaryrefslogtreecommitdiffstats
path: root/Lib/packaging/tests/test_pypi_dist.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2011-05-19 18:25:10 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2011-05-19 18:25:10 (GMT)
commitcad648cbc95db0a5d694bd73a6a4ba2505920066 (patch)
treeb1894b64804ca923eb52c92a65517130e87e1aa0 /Lib/packaging/tests/test_pypi_dist.py
parentebbb14c1a1ec226b06f96d1fc581122558e1385e (diff)
downloadcpython-cad648cbc95db0a5d694bd73a6a4ba2505920066.zip
cpython-cad648cbc95db0a5d694bd73a6a4ba2505920066.tar.gz
cpython-cad648cbc95db0a5d694bd73a6a4ba2505920066.tar.bz2
Skip tests that require zlib in the packaging tests. Also add a requires_zlib decorator to test.support.
Diffstat (limited to 'Lib/packaging/tests/test_pypi_dist.py')
-rw-r--r--Lib/packaging/tests/test_pypi_dist.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/packaging/tests/test_pypi_dist.py b/Lib/packaging/tests/test_pypi_dist.py
index b438cb8..108e723 100644
--- a/Lib/packaging/tests/test_pypi_dist.py
+++ b/Lib/packaging/tests/test_pypi_dist.py
@@ -7,7 +7,7 @@ from packaging.pypi.dist import (ReleaseInfo, ReleasesList, DistInfo,
from packaging.pypi.errors import HashDoesNotMatch, UnsupportedHashName
from packaging.tests import unittest
-from packaging.tests.support import TempdirManager
+from packaging.tests.support import TempdirManager, requires_zlib
from packaging.tests.pypi_server import use_pypi_server
@@ -158,6 +158,7 @@ class TestDistInfo(TempdirManager, unittest.TestCase):
hashname="invalid_hashname",
hashval="value")
+ @requires_zlib
@use_pypi_server('downloads_with_md5')
def test_unpack(self, server):
url = server.full_address + self.srcpath