Skip to content

Commit

Permalink
Skip test failing with older Pillow
Browse files Browse the repository at this point in the history
  • Loading branch information
saimn committed Jul 10, 2021
1 parent aa0a206 commit cb320b4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
1 change: 0 additions & 1 deletion tests/sample/sigal.conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
keep_orig = True
thumb_video_delay = 5
# img_format = 'jpeg'
copy_exif_data = True

links = [
("Example link", "http://example.org"),
Expand Down
5 changes: 5 additions & 0 deletions tests/test_image.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import os
from unittest.mock import patch

import PIL
import pytest
from packaging.version import Version
from PIL import Image as PILImage

from sigal import init_logging
Expand Down Expand Up @@ -280,6 +282,9 @@ def test_exif_copy(tmpdir):
assert not simple


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

Expand Down
10 changes: 5 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
[tox]
envlist = py{37,38,39}-pillow{71,-latest},pypy3,check
envlist = py{37,38,39}-pillow{72,80,-latest},pypy3,check
skip_missing_interpreters = true
isolated_build = true

[gh-actions]
python =
3.7: py37-pillow71
3.8: py38-pillow-latest, check
3.7: py37-pillow72
3.8: py38-pillow80, check
3.9: py39-pillow-latest
pypy3: pypy3

[testenv]
deps =
pillow70: Pillow==7.0.0
pillow71: Pillow==7.1.0
pillow80: Pillow==8.0.1
pillow72: Pillow==7.2.0
extras =
all
tests
Expand Down

0 comments on commit cb320b4

Please sign in to comment.