mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
Update Tests/test_imageops.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
parent
9d3da37f35
commit
977e64fb61
|
@ -376,7 +376,7 @@ def test_autocontrast_preserve_gradient():
|
||||||
|
|
||||||
# cutoff the top and bottom
|
# cutoff the top and bottom
|
||||||
# autocontrast should make the first and list histogram entries equal
|
# 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)
|
out = ImageOps.autocontrast(gradient, cutoff=10, preserve_tone=True)
|
||||||
hist = out.histogram()
|
hist = out.histogram()
|
||||||
assert hist[0] == hist[-1]
|
assert hist[0] == hist[-1]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user