Skip to content

Commit 43ec6ec

Browse files
committed
Fix test for pypy
1 parent 8af0294 commit 43ec6ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_isal.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ def test_compress_compressobj(data_size, level, wbits, memLevel):
106106
memLevel=memLevel)
107107
compressed = compressobj.compress(data) + compressobj.flush()
108108
if wbits in range(8, 16):
109-
# In case a zlib header is used, determine the wbits automatically.
110-
# For some reason it fails if wbits is set manually.
111-
decompressed = zlib.decompress(compressed, wbits=0)
109+
# TODO: Apparently the wbits level is not correctly implemented in
110+
# ISA-L for the zlib stuff.
111+
decompressed = zlib.decompress(compressed, wbits=15)
112112
else:
113113
decompressed = zlib.decompress(compressed, wbits=wbits)
114114
assert data == decompressed

0 commit comments

Comments
 (0)