We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04e9274 commit 0bd2d96Copy full SHA for 0bd2d96
tests/test_igzip_lib.py
@@ -224,6 +224,12 @@ def test_failure(self):
224
with pytest.raises(Exception):
225
igzd.decompress(self.BAD_DATA * 30)
226
227
+ def test_dictionary(self):
228
+ compressor = zlib.compressobj(zdict=b"bla")
229
+ data = compressor.compress(b"bladiebla") + compressor.flush()
230
+ igzd = IgzipDecompressor(flag=DECOMP_ZLIB, zdict=b"bla")
231
+ assert igzd.decompress(data) == b"bladiebla"
232
+
233
234
@pytest.mark.parametrize("test_offset", range(5))
235
def test_igzip_decompressor_raw_deflate_unused_data_zlib(test_offset):
0 commit comments