From d9a7c4b8e56ddf8be878de284b8a29d4346ec0f8 Mon Sep 17 00:00:00 2001 From: Ezio Melotti Date: Mon, 14 Mar 2011 18:57:02 +0200 Subject: [PATCH] Skip test that requires zlib when zlib is not available. --- Lib/test/test_zipfile.py | 1 + 1 file changed, 1 insertion(+) 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') -- 2.40.0