Skip to content

Commit

Permalink
Add PNG-length alternatives to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jsvine committed Apr 20, 2023
1 parent 255eaac commit ae676ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_display.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,10 @@ def test__repr_png_(self):
png = self.im._repr_png_()
assert isinstance(png, bytes)
assert len(png) in (
71939,
61247,
71939,
71983,
72168,
) # PNG encoder seems to work differently on different setups

def test_decompression_bomb(self):
Expand Down

0 comments on commit ae676ae

Please sign in to comment.