Issue #19544, #6516: check ZLIB_SUPPORT, not zlib (which might not be bound)

This commit is contained in:
Zachary Ware 2013-12-30 14:39:46 -06:00
parent f598558afb
commit 2ee2c95595

View 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()