From 0aa05780c5ec72e0264221c0bf2cb07078f14bd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Mon, 22 Apr 2013 11:55:17 +0200 Subject: [PATCH] test_file_tiff: skip JPEG-in-TIFF tests if libjpeg is not available. --- Tests/test_file_tiff.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tests/test_file_tiff.py b/Tests/test_file_tiff.py index d230bffa7..4347bda8b 100644 --- a/Tests/test_file_tiff.py +++ b/Tests/test_file_tiff.py @@ -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)