Do not use deprecated getdata

This commit is contained in:
Andrew Murray 2026-01-02 15:47:35 +11:00
parent dacf2f8516
commit 3394dc8899

View File

@ -621,7 +621,7 @@ def test_sobel_detects_edge() -> None:
img.putpixel((x, 2), 255)
out = ImageOps.sobel(img)
assert max(out.getdata()) > 0
assert max(out.tobytes()) > 0
def test_sobel_output_mode_and_size() -> None: