[Python-checkins] cpython: Issue #19544, #6516: check ZLIB_SUPPORT, not zlib (which might not be bound)

zach.ware python-checkins at python.org
Mon Dec 30 22:09:28 CET 2013


http://hg.python.org/cpython/rev/2a872126f4a1
changeset:   88227:2a872126f4a1
user:        Zachary Ware <zachary.ware at gmail.com>
date:        Mon Dec 30 15:09:20 2013 -0600
summary:
  Issue #19544, #6516: check ZLIB_SUPPORT, not zlib (which might not be bound)

files:
  Lib/distutils/tests/test_sdist.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/distutils/tests/test_sdist.py b/Lib/distutils/tests/test_sdist.py
--- a/Lib/distutils/tests/test_sdist.py
+++ b/Lib/distutils/tests/test_sdist.py
@@ -429,7 +429,7 @@
         self.assertEqual(sorted(filenames), ['fake-1.0', 'fake-1.0/PKG-INFO',
                                              'fake-1.0/README.manual'])
 
-    @unittest.skipUnless(zlib, "requires zlib")
+    @unittest.skipUnless(ZLIB_SUPPORT, "requires zlib")
     @unittest.skipUnless(UID_GID_SUPPORT, "Requires grp and pwd support")
     @unittest.skipIf(find_executable('tar') is None,
                      "The tar command is not found")

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list