From cbf4f328c7664e3690bbe2eb9136721730b14f46 Mon Sep 17 00:00:00 2001 From: Hamza Date: Wed, 1 Jul 2020 04:20:19 +0500 Subject: [PATCH] fixed tests --- Tests/test_imageops.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/test_imageops.py b/Tests/test_imageops.py index 170ad6b3d..ec6a55e0e 100644 --- a/Tests/test_imageops.py +++ b/Tests/test_imageops.py @@ -304,5 +304,5 @@ def test_exif_transpose(): def test_autocontrast_cutoff(): # Test the cutoff argument of autocontrast with Image.open("Tests/images/bw_gradient.png") as img: - assert ImageOps.autocontrast(img, cutoff=10).getdata() == ImageOps.autocontrast(img, cutoff=(10,10)).getdata() - assert ImageOps.autocontrast(img, cutoff=10).getdata() != ImageOps.autocontrast(img, cutoff=(1,10)).getdata() \ No newline at end of file + assert ImageOps.autocontrast(img, cutoff=10).histogram() == ImageOps.autocontrast(img, cutoff=(10,10)).histogram() + assert ImageOps.autocontrast(img, cutoff=10).histogram() != ImageOps.autocontrast(img, cutoff=(1,10)).histogram() \ No newline at end of file