Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion tests/test_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,4 +186,9 @@ def test_writing_entry_digests(tmpdir):
archive.add_file_from_memory('empty.txt', 42, (), stored_digests=fake_hashes)
with open(archive_path) as f:
libarchive_mtree = f.read()
assert libarchive_mtree == mtree

# rmd160 might be missing if openssl >= 3.0 is used without "legacy providers"
expected = (mtree if 'rmd160' in libarchive_mtree else
' '.join(item for item in mtree.split(' ') if 'rmd160' not in item))

assert libarchive_mtree == expected