Skip to content

Commit

Permalink
Update error type in struct opening test
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido committed Aug 17, 2023
1 parent d5d952c commit 6a74792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/eko/io/test_struct.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_load_error(self, tmp_path):
# try to read from a non-tar path
no_tar_path = tmp_path / "Blub.tar"
no_tar_path.write_text("Blub", encoding="utf-8")
with pytest.raises(ValueError, match="tar"):
with pytest.raises(tarfile.ReadError):
struct.EKO.read(no_tar_path)

def test_properties(self, eko_factory: EKOFactory):
Expand Down

0 comments on commit 6a74792

Please sign in to comment.