From 86bb25e73546c3e491aef75c1e13d559665adfee Mon Sep 17 00:00:00 2001 From: wiredfool Date: Wed, 27 Mar 2013 09:52:01 -0700 Subject: [PATCH] reenable basic webp test, skip if support not installed --- Tests/test_file_webp.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Tests/test_file_webp.py b/Tests/test_file_webp.py index 0d2c984b0..f7aad97f9 100644 --- a/Tests/test_file_webp.py +++ b/Tests/test_file_webp.py @@ -2,7 +2,12 @@ from tester import * from PIL import Image -def xtest_read(): +codecs = dir(Image.core) + +if "webp_encoder" not in codecs or "webp_decoder" not in codecs: + skip("webp support not available") + +def test_read(): """ Can we write a webp without error. Does it have the bits we expect?""" file = "Images/lena.webp"