Merge pull request #203 from mgorny/tests-without-jpeg

test_file_tiff: skip JPEG-in-TIFF tests if libjpeg is not available
This commit is contained in:
wiredfool 2013-04-22 09:15:05 -07:00
commit 37b0308689

View File

@ -43,6 +43,10 @@ def test_mac_tiff():
def test_gimp_tiff(): def test_gimp_tiff():
# Read TIFF JPEG images from GIMP [@PIL168] # Read TIFF JPEG images from GIMP [@PIL168]
codecs = dir(Image.core)
if "jpeg_decoder" not in codecs:
skip("jpeg support not available")
file = "Tests/images/pil168.tif" file = "Tests/images/pil168.tif"
im = Image.open(file) im = Image.open(file)