From 38b0bef46471805aba178ed214efe35734744223 Mon Sep 17 00:00:00 2001 From: wiredfool Date: Wed, 27 Mar 2013 10:00:35 -0700 Subject: [PATCH] webp is in import, not a codec --- Tests/test_file_webp.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Tests/test_file_webp.py b/Tests/test_file_webp.py index f7aad97f9..5d48f0aff 100644 --- a/Tests/test_file_webp.py +++ b/Tests/test_file_webp.py @@ -2,10 +2,10 @@ from tester import * from PIL import Image -codecs = dir(Image.core) - -if "webp_encoder" not in codecs or "webp_decoder" not in codecs: - skip("webp support not available") +try: + import _webp +except: + skip('webp support not installed') def test_read(): """ Can we write a webp without error. Does it have the bits we expect?"""