Skip to content

Commit

Permalink
Skip test if libtiff is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jun 30, 2019
1 parent cc0d701 commit 42588a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tests/test_file_tiff.py
Expand Up @@ -4,7 +4,7 @@

from .helper import unittest, PillowTestCase, hopper

from PIL import Image, TiffImagePlugin
from PIL import Image, TiffImagePlugin, features
from PIL._util import py3
from PIL.TiffImagePlugin import X_RESOLUTION, Y_RESOLUTION, RESOLUTION_UNIT

Expand Down Expand Up @@ -587,6 +587,7 @@ def test_close_on_load_nonexclusive(self):
im.load()
self.assertFalse(fp.closed)

@unittest.skipUnless(features.check("libtiff"), "libtiff not installed")
def test_sampleformat_not_corrupted(self):
# Assert that a TIFF image with SampleFormat=UINT tag is not corrupted
# when saving to a new file.
Expand Down

0 comments on commit 42588a6

Please sign in to comment.