Skip to content

Commit 4df22f6

Browse files
committed
Remove duplicate test and remove xfails
1 parent 0277458 commit 4df22f6

File tree

2 files changed

+2
-72
lines changed

2 files changed

+2
-72
lines changed

tests/test_isal.py

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -164,23 +164,8 @@ def test_decompress_igzip(data_size, level):
164164

165165

166166
@pytest.mark.parametrize(["unused_size", "wbits"],
167-
itertools.product([26], [31]))
168-
def test_unused_data_gzip(unused_size, wbits):
169-
unused_data = b"abcdefghijklmnopqrstuvwxyz"[:unused_size]
170-
compressor = zlib.compressobj(wbits=wbits)
171-
data = b"A meaningful sentence stardts with a capital and ends with a."
172-
compressed = compressor.compress(data) + compressor.flush()
173-
decompressor = isal_zlib.decompressobj(wbits=wbits)
174-
result = decompressor.decompress(compressed + unused_data)
175-
assert result == data
176-
assert decompressor.unused_data == unused_data
177-
178-
179-
@pytest.mark.xfail(reason="Unused data and unconsumed tail do not work "
180-
"properly for non-gzip compression.")
181-
@pytest.mark.parametrize(["unused_size", "wbits"],
182-
itertools.product([26], [-15, 15]))
183-
def test_unused_data_zlib_raw(unused_size, wbits):
167+
itertools.product([26], [-15, 15, 31]))
168+
def test_unused_data(unused_size, wbits):
184169
unused_data = b"abcdefghijklmnopqrstuvwxyz"[:unused_size]
185170
compressor = zlib.compressobj(wbits=wbits)
186171
data = b"A meaningful sentence starts with a capital and ends with a."

tests/test_isal_zlib.py

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)