Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 91f0359

Browse files
committed
Skip test if zlib not present. Closes #11498. Patch by Natalia B. Bidart.
1 parent 4169826 commit 91f0359

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

Lib/importlib/_bootstrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def get_source(cls, fullname):
240240
@classmethod
241241
@_requires_builtin
242242
def is_package(cls, fullname):
243-
"""Return None as built-in module are never packages."""
243+
"""Return None as built-in modules are never packages."""
244244
return False
245245

246246

Lib/test/test_zipfile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@ def test_close_on_exception(self):
489489
except zipfile.BadZipFile:
490490
self.assertTrue(zipfp2.fp is None, 'zipfp is not closed')
491491

492+
@skipUnless(zlib, "requires zlib")
492493
def test_unicode_filenames(self):
493494
# bug #10801
494495
fname = findfile('zip_cp437_header.zip')

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ Eric Beser
8080
Steven Bethard
8181
Stephen Bevan
8282
Ron Bickers
83+
Natalia B. Bidart
8384
Adrian von Bidder
8485
David Binger
8586
Dominic Binks

0 commit comments

Comments
 (0)