reenable basic webp test, skip if support not installed

This commit is contained in:
wiredfool 2013-03-27 09:52:01 -07:00
parent 7129baa9b2
commit 86bb25e735

View File

@ -2,7 +2,12 @@ from tester import *
from PIL import Image
def xtest_read():
codecs = dir(Image.core)
if "webp_encoder" not in codecs or "webp_decoder" not in codecs:
skip("webp support not available")
def test_read():
""" Can we write a webp without error. Does it have the bits we expect?"""
file = "Images/lena.webp"