early versions of webp are known to produce higher deviations: deal with it

This commit is contained in:
Hans-Peter Jansen 2015-02-06 09:04:23 +01:00 committed by Andrew Murray
parent 43830273a5
commit be30160d57

View File

@ -83,7 +83,11 @@ class TestFileWebpAlpha(PillowTestCase):
image.load()
image.getdata()
self.assert_image_similar(image, pil_image, 1.0)
# early versions of webp are known to produce higher deviations: deal with it
if _webp.WebPDecoderVersion(self) <= 0x201:
self.assert_image_similar(image, pil_image, 3.0)
else:
self.assert_image_similar(image, pil_image, 1.0)
if __name__ == '__main__':