Skip to content

Commit

Permalink
Replace loose check with a more strict one
Browse files Browse the repository at this point in the history
The loose check appears to not be necesary. There do not appear to be
differences between systems.
  • Loading branch information
Stormheg committed Jan 15, 2024
1 parent 3fa0299 commit 0d3dd06
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_pillow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0d3dd06

Please sign in to comment.