webp is in import, not a codec

This commit is contained in:
wiredfool 2013-03-27 10:00:35 -07:00
parent 86bb25e735
commit 38b0bef464

View File

@ -2,10 +2,10 @@ from tester import *
from PIL import Image
codecs = dir(Image.core)
if "webp_encoder" not in codecs or "webp_decoder" not in codecs:
skip("webp support not available")
try:
import _webp
except:
skip('webp support not installed')
def test_read():
""" Can we write a webp without error. Does it have the bits we expect?"""