mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-13 08:44:45 +03:00
Moved test image to another repository
This commit is contained in:
parent
583dd3b424
commit
52ee12ac1e
Binary file not shown.
Before Width: | Height: | Size: 44 B |
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user