Skip to content

Commit 3394dc8

Browse files
committed
Do not use deprecated getdata
1 parent dacf2f8 commit 3394dc8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tests/test_imageops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ def test_sobel_detects_edge() -> None:
621621
img.putpixel((x, 2), 255)
622622

623623
out = ImageOps.sobel(img)
624-
assert max(out.getdata()) > 0
624+
assert max(out.tobytes()) > 0
625625

626626

627627
def test_sobel_output_mode_and_size() -> None:

0 commit comments

Comments
 (0)