mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-25 00:34:14 +03:00
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:
commit
37b0308689
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user