Skip to content

Commit cb320b4

Browse files
committed
Skip test failing with older Pillow
1 parent aa0a206 commit cb320b4

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

tests/sample/sigal.conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
keep_orig = True
66
thumb_video_delay = 5
77
# img_format = 'jpeg'
8-
copy_exif_data = True
98

109
links = [
1110
("Example link", "http://example.org"),

tests/test_image.py

Lines changed: 5 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
@@ -280,6 +282,9 @@ def test_exif_copy(tmpdir):
280282
assert not simple
281283

282284

285+
@pytest.mark.skipif(
286+
Version(PIL.__version__) < Version('8.0'), reason='fails with Pillow < 8.0'
287+
)
283288
def test_exif_gps(tmpdir):
284289
"""Test reading out correct geo tags"""
285290

tox.ini

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
[tox]
2-
envlist = py{37,38,39}-pillow{71,-latest},pypy3,check
2+
envlist = py{37,38,39}-pillow{72,80,-latest},pypy3,check
33
skip_missing_interpreters = true
44
isolated_build = true
55

66
[gh-actions]
77
python =
8-
3.7: py37-pillow71
9-
3.8: py38-pillow-latest, check
8+
3.7: py37-pillow72
9+
3.8: py38-pillow80, check
1010
3.9: py39-pillow-latest
1111
pypy3: pypy3
1212

1313
[testenv]
1414
deps =
15-
pillow70: Pillow==7.0.0
16-
pillow71: Pillow==7.1.0
15+
pillow80: Pillow==8.0.1
16+
pillow72: Pillow==7.2.0
1717
extras =
1818
all
1919
tests

0 commit comments

Comments
 (0)