From 3394dc8899e5e747e54e5820aa011b9e69aabb8e Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 2 Jan 2026 15:47:35 +1100 Subject: [PATCH] Do not use deprecated getdata --- Tests/test_imageops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/test_imageops.py b/Tests/test_imageops.py index 7fe63d3cc..2d92ec52e 100644 --- a/Tests/test_imageops.py +++ b/Tests/test_imageops.py @@ -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: