diff options
| author | Brett Cannon <brett@python.org> | 2011-03-15 21:23:21 (GMT) |
|---|---|---|
| committer | Brett Cannon <brett@python.org> | 2011-03-15 21:23:21 (GMT) |
| commit | f434ba9e4ef5a68940757ba5e3527dd02fdb53ca (patch) | |
| tree | a07c3480561906d1aa0ce04ea6cbd2b732ff3cca /Lib/distutils/tests/test_bdist_dumb.py | |
| parent | f30645d5521afe5537befd0d9e84a7c539135cdc (diff) | |
| parent | 765dcdede824c41011228461e4a5fdaec6fc90d2 (diff) | |
| download | cpython-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.py | 8 |
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 |
