From 991c847c7320611f2a68f243513b9107f3954ede Mon Sep 17 00:00:00 2001 From: Eric Soroos Date: Sat, 11 Oct 2014 09:42:10 -0700 Subject: [PATCH] Skip webp mux with the right skip message --- Tests/test_file_webp_metadata.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Tests/test_file_webp_metadata.py b/Tests/test_file_webp_metadata.py index 6aadf9c7e..f2f18d713 100644 --- a/Tests/test_file_webp_metadata.py +++ b/Tests/test_file_webp_metadata.py @@ -8,10 +8,13 @@ class TestFileWebpMetadata(PillowTestCase): def setUp(self): try: from PIL import _webp - if not _webp.HAVE_WEBPMUX: - self.skipTest('webpmux support not installed') except: self.skipTest('WebP support not installed') + return + + if not _webp.HAVE_WEBPMUX: + self.skipTest('WebPMux support not installed') + def test_read_exif_metadata(self):