You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_zipapp failed when the zlib module is not available #76179
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/serhiy-storchaka'closed_at=<Date2017-11-10.10:18:29.024>created_at=<Date2017-11-10.09:25:52.915>labels= ['3.7', 'type-bug', 'tests']
title='test_zipapp failed when the zlib module is not available'updated_at=<Date2017-11-10.10:18:29.023>user='https://github.com/serhiy-storchaka'
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_archivewith 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
Activity
serhiy-storchaka commentedon Nov 10, 2017
http://buildbot.python.org/all/#/builders/14/builds/160/steps/4/logs/stdio
======================================================================
ERROR: test_create_archive_with_compression (test.test_zipapp.ZipAppTest)
----------------------------------------------------------------------
serhiy-storchaka commentedon Nov 10, 2017
New changeset a1718bc by Serhiy Storchaka in branch 'master':
bpo-31998: Fix test_zipapp in case the zlib module is not available. (bpo-4358)
a1718bc
pfmoore commentedon Nov 10, 2017
Good catch, thanks Serhiy!