test_file_tiff: skip JPEG-in-TIFF tests if libjpeg is not available.

This commit is contained in:
Michał Górny 2013-04-22 11:55:17 +02:00
parent 6bf7599143
commit 0aa05780c5

View File

@ -43,6 +43,10 @@ def test_mac_tiff():
def test_gimp_tiff():
# 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"
im = Image.open(file)