diff --git a/Tests/test_imageops.py b/Tests/test_imageops.py index 8d12f6869..986c5f887 100644 --- a/Tests/test_imageops.py +++ b/Tests/test_imageops.py @@ -376,7 +376,7 @@ def test_autocontrast_preserve_gradient(): # cutoff the top and bottom # autocontrast should make the first and list histogram entries equal - # and should be 10% of the image pixels (+-, because integers) + # and, with rounding, should be 10% of the image pixels out = ImageOps.autocontrast(gradient, cutoff=10, preserve_tone=True) hist = out.histogram() assert hist[0] == hist[-1]