From c00a33f8a1d3c1f3a125c34f2add39de79fb1438 Mon Sep 17 00:00:00 2001 From: wiredfool Date: Wed, 2 Oct 2013 12:02:18 -0700 Subject: [PATCH] reduce text volume on failed test --- Tests/test_file_webp_metadata.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Tests/test_file_webp_metadata.py b/Tests/test_file_webp_metadata.py index 031865bd7..886011322 100644 --- a/Tests/test_file_webp_metadata.py +++ b/Tests/test_file_webp_metadata.py @@ -45,7 +45,8 @@ def test_write_exif_metadata(): webp_exif = webp_image.info.get('exif', None) assert_true(webp_exif) - assert_equal(webp_exif, expected_exif) + if webp_exif: + assert_equal(webp_exif, expected_exif, "Webp Exif didn't match") def test_read_icc_profile(): @@ -77,5 +78,7 @@ def test_write_icc_metadata(): webp_image = Image.open(buffer) webp_icc_profile = webp_image.info.get('icc_profile', None) + assert_true(webp_icc_profile) - assert_equal(webp_icc_profile, expected_icc_profile) + if webp_icc_profile: + assert_equal(webp_icc_profile, expected_icc_profile, "Webp ICC didn't match")