Skip to content

Commit 627029f

Browse files
committed
Switch from deprecated getdata to get_flattened_data
1 parent dacf2f8 commit 627029f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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.get_flattened_data()) > 0
625625

626626

627627
def test_sobel_output_mode_and_size() -> None:

0 commit comments

Comments
 (0)