Skip to content

Commit 17d1b50

Browse files
committed
gh-43521: Skip the HTTPGzipHandler tests when zlib is unavailable
HTTPGzipHandler() raises ImportError without zlib, so on builds that lack it (such as the MSan CI job) twelve of the tests errored instead of being skipped.
1 parent 869d3a8 commit 17d1b50

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎Lib/test/test_urllib2.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1968,6 +1968,7 @@ def close(self):
19681968
self._file.close()
19691969

19701970

1971+
@support.requires_zlib()
19711972
class HTTPGzipHandlerTests(unittest.TestCase):
19721973

19731974
body = b"The quick brown fox jumps over the lazy dog.\n" * 200

0 commit comments

Comments
 (0)