Update Tests/test_imageops.py

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
Navneeth Subramanian 2020-08-08 19:32:52 +09:00 committed by GitHub
parent fa493809a6
commit faf913d0f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -321,8 +321,10 @@ def test_autocontrast_mask_toy_input():
rect_mask = Image.new("L", img.size, 0)
draw = ImageDraw.Draw(rect_mask)
x0, y0 = img.size[0] // 4, img.size[1] // 4
x1, y1 = 3 * img.size[0] // 4, 3 * img.size[1] // 4
x0 = img.size[0] // 4
y0 = img.size[1] // 4
x1 = 3 * img.size[0] // 4
y1 = 3 * img.size[1] // 4
draw.rectangle((x0, y0, x1, y1), fill=255)
assert ImageOps.autocontrast(img, mask=rect_mask) != ImageOps.autocontrast(img)