From: Ezio Melotti Date: Mon, 14 Mar 2011 16:57:02 +0000 (+0200) Subject: Skip test that requires zlib when zlib is not available. X-Git-Tag: v3.2.1b1~309 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d9a7c4b8e56ddf8be878de284b8a29d4346ec0f8;p=python Skip test that requires zlib when zlib is not available. --- diff --git a/Lib/test/test_zipfile.py b/Lib/test/test_zipfile.py index 8d51528ecc..90aab8689c 100644 --- a/Lib/test/test_zipfile.py +++ b/Lib/test/test_zipfile.py @@ -489,6 +489,7 @@ class TestsWithSourceFile(unittest.TestCase): except zipfile.BadZipFile: self.assertTrue(zipfp2.fp is None, 'zipfp is not closed') + @skipUnless(zlib, "requires zlib") def test_unicode_filenames(self): # bug #10801 fname = findfile('zip_cp437_header.zip')