mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 17:24:31 +03:00
skipUnless takes a condition and _reason_
This commit is contained in:
parent
fdea5a28e9
commit
a1b9f94d60
|
@ -23,19 +23,19 @@ class TestFeatures(PillowTestCase):
|
|||
self.assertEqual(features.check_feature(feature),
|
||||
features.check(feature))
|
||||
|
||||
@unittest.skipUnless(HAVE_WEBP, True)
|
||||
@unittest.skipUnless(HAVE_WEBP, "WebP not available")
|
||||
def check_webp_transparency(self):
|
||||
self.assertEqual(features.check('transp_webp'),
|
||||
not _webp.WebPDecoderBuggyAlpha())
|
||||
self.assertEqual(features.check('transp_webp'),
|
||||
_webp.HAVE_TRANSPARENCY)
|
||||
|
||||
@unittest.skipUnless(HAVE_WEBP, True)
|
||||
@unittest.skipUnless(HAVE_WEBP, "WebP not available")
|
||||
def check_webp_mux(self):
|
||||
self.assertEqual(features.check('webp_mux'),
|
||||
_webp.HAVE_WEBPMUX)
|
||||
|
||||
@unittest.skipUnless(HAVE_WEBP, True)
|
||||
@unittest.skipUnless(HAVE_WEBP, "WebP not available")
|
||||
def check_webp_anim(self):
|
||||
self.assertEqual(features.check('webp_anim'),
|
||||
_webp.HAVE_WEBPANIM)
|
||||
|
|
Loading…
Reference in New Issue
Block a user