]> granicus.if.org Git - python/commitdiff
Skip test that requires zlib when zlib is not available.
authorEzio Melotti <ezio.melotti@gmail.com>
Mon, 14 Mar 2011 16:57:02 +0000 (18:57 +0200)
committerEzio Melotti <ezio.melotti@gmail.com>
Mon, 14 Mar 2011 16:57:02 +0000 (18:57 +0200)
Lib/test/test_zipfile.py

index 8d51528ecc7ceaaa5762b9a23864235a71b4c89f..90aab8689cde7933028265679b60f41dc9d20566 100644 (file)
@@ -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')