From 16e804b8924c516bf18287f250685220e01aea9c Mon Sep 17 00:00:00 2001 From: Hamza Date: Wed, 1 Jul 2020 04:37:17 +0500 Subject: [PATCH] linting fixed --- Tests/test_imageops.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Tests/test_imageops.py b/Tests/test_imageops.py index ec6a55e0e..9938aff28 100644 --- a/Tests/test_imageops.py +++ b/Tests/test_imageops.py @@ -301,8 +301,15 @@ def test_exif_transpose(): ) as orientation_im: check(orientation_im) + 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).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 + 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() + )