mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-07 13:35:16 +08:00
tests: Fix bz2 decompression (again)
This commit is contained in:
parent
473c76a51b
commit
398cebd174
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue