tests: Fix bz2 decompression (again)

This commit is contained in:
Orsiris de Jong 2024-12-03 21:48:05 +01:00
parent 473c76a51b
commit 398cebd174

View file

@ -100,7 +100,7 @@ def test_download_restic_binaries():
print("PATH TO DOWNLOADED ARCHIVE: ", full_path)
if fname.endswith("bz2"):
with open(full_path.with_suffix(""), "wb") as fp:
fp.write(bz2.decompress(full_path)
fp.write(bz2.decompress(file_request.content)
)
else:
with open(full_path, "wb") as fp: