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 0ac525b commit f0e9999Copy full SHA for f0e9999
src/borg/testsuite/compress.py
@@ -50,7 +50,7 @@ def test_lz4_buffer_allocation(monkeypatch):
50
@pytest.mark.parametrize("invalid_cdata", [b"\xff\xfftotalcrap", b"\x08\x00notreallyzlib"])
51
def test_autodetect_invalid(invalid_cdata):
52
with pytest.raises(ValueError):
53
- Compressor(**params, legacy_mode=True).decompress({}, invalid_cdata)
+ Compressor(**params, legacy_mode=True).decompress(None, invalid_cdata)
54
55
56
def test_zlib_legacy_compat():
@@ -61,7 +61,7 @@ def test_zlib_legacy_compat():
61
meta1, cdata1 = c.compress({}, DATA)
62
cdata2 = zlib.compress(DATA, level)
63
assert cdata1 == cdata2
64
- meta2, data2 = c.decompress({}, cdata2)
+ meta2, data2 = c.decompress(None, cdata2)
65
assert DATA == data2
66
67
0 commit comments