]> granicus.if.org Git - python/commitdiff
Issue #19544, #6516: check ZLIB_SUPPORT, not zlib (which might not be bound)
authorZachary Ware <zachary.ware@gmail.com>
Mon, 30 Dec 2013 21:09:20 +0000 (15:09 -0600)
committerZachary Ware <zachary.ware@gmail.com>
Mon, 30 Dec 2013 21:09:20 +0000 (15:09 -0600)
Lib/distutils/tests/test_sdist.py

index 49e267e20aa1b0a720b6ac7979acf3e63e95aa60..5a04e0ddd0fd0cfd514d052a263116dd3a7e6875 100644 (file)
@@ -429,7 +429,7 @@ class SDistTestCase(PyPIRCCommandTestCase):
         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")