]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-106160: Fix test_gzip failing under WASI, which does not have zlib. (#106167)
authorT. Wouters <thomas@python.org>
Wed, 28 Jun 2023 00:55:11 +0000 (02:55 +0200)
committerGitHub <noreply@github.com>
Wed, 28 Jun 2023 00:55:11 +0000 (00:55 +0000)
commit161012fc25910a47423bae8012398bf519a88140
tree091265a4903d3d26db3a7f3b5e2dfbb5a8ffeeea
parent84caa3324aaefb900895de2f946607cfdbe1be70
GH-106160: Fix test_gzip failing under WASI, which does not have zlib. (#106167)

Fix test_gzip's failure under WASI, which does not have zlib, by using
test.support.import_helper.import_module to import zlib. (gzip
unconditionally imports zlib, so this does not cause any new skips.)
Lib/test/test_gzip.py