mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 18:26:17 +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
|
||||
|
||||
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?"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user