summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/tests/test_bdist_dumb.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2011-03-15 21:23:21 (GMT)
committerBrett Cannon <brett@python.org>2011-03-15 21:23:21 (GMT)
commitf434ba9e4ef5a68940757ba5e3527dd02fdb53ca (patch)
treea07c3480561906d1aa0ce04ea6cbd2b732ff3cca /Lib/distutils/tests/test_bdist_dumb.py
parentf30645d5521afe5537befd0d9e84a7c539135cdc (diff)
parent765dcdede824c41011228461e4a5fdaec6fc90d2 (diff)
downloadcpython-f434ba9e4ef5a68940757ba5e3527dd02fdb53ca.zip
cpython-f434ba9e4ef5a68940757ba5e3527dd02fdb53ca.tar.gz
cpython-f434ba9e4ef5a68940757ba5e3527dd02fdb53ca.tar.bz2
merge
Diffstat (limited to 'Lib/distutils/tests/test_bdist_dumb.py')
-rw-r--r--Lib/distutils/tests/test_bdist_dumb.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/distutils/tests/test_bdist_dumb.py b/Lib/distutils/tests/test_bdist_dumb.py
index cc37fef..55ba58d 100644
--- a/Lib/distutils/tests/test_bdist_dumb.py
+++ b/Lib/distutils/tests/test_bdist_dumb.py
@@ -18,6 +18,13 @@ setup(name='foo', version='0.1', py_modules=['foo'],
"""
+try:
+ import zlib
+ ZLIB_SUPPORT = True
+except ImportError:
+ ZLIB_SUPPORT = False
+
+
class BuildDumbTestCase(support.TempdirManager,
support.LoggingSilencer,
support.EnvironGuard,
@@ -34,6 +41,7 @@ class BuildDumbTestCase(support.TempdirManager,
sys.argv[:] = self.old_sys_argv[1]
super(BuildDumbTestCase, self).tearDown()
+ @unittest.skipUnless(ZLIB_SUPPORT, 'Need zlib support to run')
def test_simple_built(self):
# let's create a simple package