mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-04 21:50:54 +03:00
test_file_tiff: skip JPEG-in-TIFF tests if libjpeg is not available.
This commit is contained in:
parent
6bf7599143
commit
0aa05780c5
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user