Moved test image to another repository

This commit is contained in:
Andrew Murray 2023-02-23 20:19:01 +11:00
parent 583dd3b424
commit 52ee12ac1e
2 changed files with 9 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 B

View File

@ -2,7 +2,7 @@ import pytest
from PIL import Image from PIL import Image
from .helper import hopper from .helper import hopper, on_ci
TEST_FILE = "Tests/images/hopper.ppm" TEST_FILE = "Tests/images/hopper.ppm"
@ -58,8 +58,14 @@ class TestDecompressionBomb:
def test_exception_gif(self): def test_exception_gif(self):
with pytest.raises(Image.DecompressionBombError): with pytest.raises(Image.DecompressionBombError):
with Image.open("Tests/images/decompression_bomb.gif"): try:
pass with Image.open("Tests/images/decompression_bomb.gif"):
pass
except FileNotFoundError:
if not on_ci():
pytest.skip("test image not found")
return
raise
def test_exception_gif_extents(self): def test_exception_gif_extents(self):
with Image.open("Tests/images/decompression_bomb_extents.gif") as im: with Image.open("Tests/images/decompression_bomb_extents.gif") as im: