Skip to content

Commit

Permalink
Merge be30160 into 4383027
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Feb 14, 2015
2 parents 4383027 + be30160 commit 4e34e93
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Tests/test_file_webp_alpha.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ def test_write_rgba(self):
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__':
Expand Down

0 comments on commit 4e34e93

Please sign in to comment.