From 0d3dd06f495712903369f26f59a0fefc7907957e Mon Sep 17 00:00:00 2001 From: "Storm B. Heg" Date: Mon, 15 Jan 2024 23:05:51 +0100 Subject: [PATCH] Replace loose check with a more strict one The loose check appears to not be necesary. There do not appear to be differences between systems. --- tests/test_pillow.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_pillow.py b/tests/test_pillow.py index 63e1ce9..5222d8d 100644 --- a/tests/test_pillow.py +++ b/tests/test_pillow.py @@ -179,11 +179,10 @@ def test_transform_colorspace_to_srgb(self): expected_sum2 = [1286116001.0, 1222827100.0, 1144012271.0] for actual, expected in zip(stat.sum2, expected_sum2): - self.assertAlmostEqual( + self.assertEqual( actual, expected, - delta=1000, - msg="The colors in this image deviate too much from the expected values.", + msg="The colors in the transformed image don't match with expectations. Did the sample image change or is there a bug?", ) # The image should now have a embedded sRGB profile