Issue 31998: test_zipapp failed when the zlib module is not available
http://buildbot.python.org/all/#/builders/14/builds/160/steps/4/logs/stdio ====================================================================== ERROR: test_create_archive_with_compression (test.test_zipapp.ZipAppTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/test/test_zipapp.py", line 111, in test_create_archive_with_compression zipapp.create_archive(source, target, compressed=True) File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/zipapp.py", line 138, in create_archive with zipfile.ZipFile(fd, 'w', compression=compression) as z: File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/zipfile.py", line 1061, in __init__ _check_compression(compression) File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/zipfile.py", line 644, in _check_compression "Compression requires the (missing) zlib module") RuntimeError: Compression requires the (missing) zlib module ----------------------------------------------------------------------