mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-01 03:33:21 +03:00
webp is in import, not a codec
This commit is contained in:
parent
86bb25e735
commit
38b0bef464
|
@ -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?"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user