mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-11 17:56:18 +03:00
Don't use unittest skip decorator, doesn't seem to work
This commit is contained in:
parent
acc4334291
commit
c5e6211936
|
@ -5,10 +5,8 @@ from PIL import Image
|
||||||
try:
|
try:
|
||||||
from PIL import _webp
|
from PIL import _webp
|
||||||
HAVE_WEBP = True
|
HAVE_WEBP = True
|
||||||
HAVE_WEBPANIM = True
|
|
||||||
except ImportError:
|
except ImportError:
|
||||||
HAVE_WEBP = False
|
HAVE_WEBP = False
|
||||||
HAVE_WEBPANIM = False
|
|
||||||
|
|
||||||
class TestFileWebpMetadata(PillowTestCase):
|
class TestFileWebpMetadata(PillowTestCase):
|
||||||
|
|
||||||
|
@ -112,8 +110,10 @@ class TestFileWebpMetadata(PillowTestCase):
|
||||||
|
|
||||||
self.assertFalse(webp_image._getexif())
|
self.assertFalse(webp_image._getexif())
|
||||||
|
|
||||||
@unittest.skipUnless(HAVE_WEBPANIM, 'WebP animation support not available')
|
|
||||||
def test_write_animated_metadata(self):
|
def test_write_animated_metadata(self):
|
||||||
|
if not _webp.HAVE_WEBPANIM:
|
||||||
|
self.skipTest('WebP animation support not available')
|
||||||
|
|
||||||
iccp_data = '<iccp_data>'.encode('utf-8')
|
iccp_data = '<iccp_data>'.encode('utf-8')
|
||||||
exif_data = '<exif_data>'.encode('utf-8')
|
exif_data = '<exif_data>'.encode('utf-8')
|
||||||
xmp_data = '<xmp_data>'.encode('utf-8')
|
xmp_data = '<xmp_data>'.encode('utf-8')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user