Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
the
  • Loading branch information
pubpub-zz committed Apr 8, 2024
1 parent 8e2824c commit 59f2841
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,10 @@ def test_separation_1byte_to_rgb_inverted():
name = "iss2343.png"
img = Image.open(BytesIO(get_data_from_url(url, name=name)))
assert image_similarity(reader.pages[0].images[0].image, img) >= 0.99
obj = reader.pages[0].images[0].indirect_reference.get_object()
obj.set_data(obj.get_data() + b"\x00")
with pytest.raises(ValueError):
reader.pages[0].images[0]


@pytest.mark.enable_socket()
Expand Down

0 comments on commit 59f2841

Please sign in to comment.