Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
emontnemery committed Jan 14, 2025
1 parent 58b7d2c commit b328f6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_tar.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

from securetar import (
SecureTarFile,
SecureTarReadError,
_add_stream,
atomic_contents_add,
secure_path,
Expand Down Expand Up @@ -398,7 +399,7 @@ def test_encrypted_tar_inside_tar(
with open(inner_tar_path, "wb") as file:
with istf.decrypt(tar_info) as decrypted:
with pytest.raises(
ValueError, match="The inner tar is not gzip or tar"
SecureTarReadError, match="The inner tar is not gzip or tar"
):
while data := decrypted.read(bufsize):
file.write(data)
Expand Down

0 comments on commit b328f6e

Please sign in to comment.