Skip test that requires zlib when zlib is not available.

This commit is contained in:
Ezio Melotti 2011-03-14 18:57:02 +02:00
parent 42d0f68458
commit d9a7c4b8e5
1 changed files with 1 additions and 0 deletions

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