Skip to content

Commit 130d43e

Browse files
committed
Skip test failing with older Pillow
1 parent d29d127 commit 130d43e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_image.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import os
22
from unittest.mock import patch
33

4+
import PIL
45
import pytest
6+
from packaging.version import Version
57
from PIL import Image as PILImage
68

79
from sigal import init_logging
@@ -253,6 +255,8 @@ def test_exif_copy(tmpdir):
253255
assert not simple
254256

255257

258+
@pytest.mark.skipif(Version(PIL.__version__) < Version('8.0'),
259+
reason='fails with Pillow < 8.0')
256260
def test_exif_gps(tmpdir):
257261
"""Test reading out correct geo tags"""
258262

0 commit comments

Comments
 (0)