mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 18:26:17 +03:00
Test unsupported autocontrast mode
This commit is contained in:
parent
ef46608974
commit
f54dd84586
|
@ -433,6 +433,12 @@ def test_exif_transpose_in_place():
|
|||
assert_image_equal(im, expected)
|
||||
|
||||
|
||||
def test_autocontrast_unsupported_mode():
|
||||
im = Image.new("RGBA", (1, 1))
|
||||
with pytest.raises(OSError):
|
||||
ImageOps.autocontrast(im)
|
||||
|
||||
|
||||
def test_autocontrast_cutoff():
|
||||
# Test the cutoff argument of autocontrast
|
||||
with Image.open("Tests/images/bw_gradient.png") as img:
|
||||
|
|
Loading…
Reference in New Issue
Block a user