mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
Fix invalid_args test for older versions of libwebp
This commit is contained in:
parent
247c2f59a1
commit
5b2dd29f44
|
@ -120,7 +120,7 @@ class TestFileWebp(PillowTestCase):
|
|||
Calling encoder functions with no arguments should result in an error.
|
||||
"""
|
||||
|
||||
if _webp.HAVE_WEBPMUX:
|
||||
if _webp.HAVE_WEBPANIM:
|
||||
self.assertRaises(TypeError, _webp.WebPAnimEncoder)
|
||||
self.assertRaises(TypeError, _webp.WebPEncode)
|
||||
|
||||
|
@ -129,7 +129,7 @@ class TestFileWebp(PillowTestCase):
|
|||
Calling decoder functions with no arguments should result in an error.
|
||||
"""
|
||||
|
||||
if _webp.HAVE_WEBPMUX:
|
||||
if _webp.HAVE_WEBPANIM:
|
||||
self.assertRaises(TypeError, _webp.WebPAnimDecoder)
|
||||
self.assertRaises(TypeError, _webp.WebPDecode)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user