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):