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 from PIL import Image
codecs = dir(Image.core) try:
import _webp
if "webp_encoder" not in codecs or "webp_decoder" not in codecs: except:
skip("webp support not available") skip('webp support not installed')
def test_read(): def test_read():
""" Can we write a webp without error. Does it have the bits we expect?""" """ Can we write a webp without error. Does it have the bits we expect?"""