Update Tests/test_imageops.py

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
German Novikov 2021-03-25 14:56:30 +03:00 committed by GitHub
parent 9d3da37f35
commit 977e64fb61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]