skipp these test is libtiff support is not included

This commit is contained in:
wiredfool 2013-04-21 13:52:04 -07:00
parent 945b6bf53c
commit d2c9ee14ad

View File

@ -4,6 +4,11 @@ from PIL import Image
from test_file_libtiff import _assert_noerr from test_file_libtiff import _assert_noerr
codecs = dir(Image.core)
if "group4_encoder" not in codecs or "group4_decoder" not in codecs:
skip("tiff support not available")
""" The small lena image was failing on open in the libtiff """ The small lena image was failing on open in the libtiff
decoder because the file pointer was set to the wrong place decoder because the file pointer was set to the wrong place
by a spurious seek. It wasn't failing with the byteio method. by a spurious seek. It wasn't failing with the byteio method.