mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 09:14:27 +03:00
linting fixed
This commit is contained in:
parent
cbf4f328c7
commit
16e804b892
|
@ -301,8 +301,15 @@ def test_exif_transpose():
|
||||||
) as orientation_im:
|
) as orientation_im:
|
||||||
check(orientation_im)
|
check(orientation_im)
|
||||||
|
|
||||||
|
|
||||||
def test_autocontrast_cutoff():
|
def test_autocontrast_cutoff():
|
||||||
# Test the cutoff argument of autocontrast
|
# Test the cutoff argument of autocontrast
|
||||||
with Image.open("Tests/images/bw_gradient.png") as img:
|
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 (
|
||||||
assert ImageOps.autocontrast(img, cutoff=10).histogram() != ImageOps.autocontrast(img, cutoff=(1,10)).histogram()
|
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()
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user