]> 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 20:39:46 +0000 (14:39 -0600)
committerZachary Ware <zachary.ware@gmail.com>
Mon, 30 Dec 2013 20:39:46 +0000 (14:39 -0600)
Lib/distutils/tests/test_archive_util.py

index 6b42c5a213a50a54342a024172d32702ba0fc49b..2d72af4aa6f49f0a2bdd2708e819f13f5dba62e0 100644 (file)
@@ -308,7 +308,7 @@ class ArchiveUtilTestCase(support.TempdirManager,
                            owner='kjhkjhkjg', group='oihohoh')
         self.assertTrue(os.path.exists(res))
 
-    @unittest.skipUnless(zlib, "Requires zlib")
+    @unittest.skipUnless(ZLIB_SUPPORT, "Requires zlib")
     @unittest.skipUnless(UID_GID_SUPPORT, "Requires grp and pwd support")
     def test_tarfile_root_owner(self):
         tmpdir, tmpdir2, base_name =  self._create_files()