Merge pull request #469 from manisandro/test_webp

Use assert_image_similar in test_file_webp.py
This commit is contained in:
Alex Clark ☺ 2014-01-04 13:34:43 -08:00
commit bcfc06d6d0

View File

@ -28,7 +28,7 @@ def test_read_rgb():
# generated with: dwebp -ppm ../../Images/lena.webp -o lena_webp_bits.ppm # generated with: dwebp -ppm ../../Images/lena.webp -o lena_webp_bits.ppm
target = Image.open('Tests/images/lena_webp_bits.ppm') target = Image.open('Tests/images/lena_webp_bits.ppm')
assert_image_equal(image, target) assert_image_similar(image, target, 20.0)
def test_write_rgb(): def test_write_rgb():