Skip test if zlib not present. Closes #11498. Patch by Natalia B. Bidart.

This commit is contained in:
Eric V. Smith 2011-03-14 11:57:16 -04:00
parent 4169826a00
commit 91f0359ee4
3 changed files with 3 additions and 1 deletions

View File

@ -240,7 +240,7 @@ class BuiltinImporter:
@classmethod
@_requires_builtin
def is_package(cls, fullname):
"""Return None as built-in module are never packages."""
"""Return None as built-in modules are never packages."""
return False

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

View File

@ -80,6 +80,7 @@ Eric Beser
Steven Bethard
Stephen Bevan
Ron Bickers
Natalia B. Bidart
Adrian von Bidder
David Binger
Dominic Binks