From d70c4319615417390b12aef5e90546bbf16fb78d Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Mon, 19 Aug 2019 16:44:32 +0100 Subject: [PATCH] relax HEIC threshold argh rounding with different lib versions --- test/test-suite/test_foreign.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test-suite/test_foreign.py b/test/test-suite/test_foreign.py index 89bb8f34..6856418c 100644 --- a/test/test-suite/test_foreign.py +++ b/test/test-suite/test_foreign.py @@ -842,7 +842,9 @@ class TestForeign: def test_heifload(self): def heif_valid(im): a = im(10, 10) - assert_almost_equal_objects(a, [75.0, 86.0, 81.0]) + # different versions of HEIC decode have slightly different + # rounding + assert_almost_equal_objects(a, [75.0, 86.0, 81.0], threshold=2) assert im.width == 4032 assert im.height == 3024 assert im.bands == 3