Skip webp mux with the right skip message

This commit is contained in:
Eric Soroos 2014-10-11 09:42:10 -07:00
parent fe6a8cede7
commit 991c847c73

View File

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