From a1b9f94d60983a5d082b7256f52c1b85524bbe31 Mon Sep 17 00:00:00 2001 From: Hugo Date: Sun, 21 Oct 2018 16:42:41 +0300 Subject: [PATCH] skipUnless takes a condition and _reason_ --- Tests/test_features.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/test_features.py b/Tests/test_features.py index 54d668d2f..c1f5b5cc6 100644 --- a/Tests/test_features.py +++ b/Tests/test_features.py @@ -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)