From d3b4c36551dd4f16a956c3c83c33c68c0f21abe9 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sat, 12 Sep 2026 12:57:57 +1000 Subject: [PATCH] Do not use deprecated getdata --- checks/check_imaging_leaks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checks/check_imaging_leaks.py b/checks/check_imaging_leaks.py index 14f3c309814..76551af6b0d 100644 --- a/checks/check_imaging_leaks.py +++ b/checks/check_imaging_leaks.py @@ -46,7 +46,7 @@ def _test_leak( def test_leak_putdata() -> None: im = Image.new("RGB", (25, 25)) - _test_leak(min_iterations, max_iterations, im.putdata, im.getdata()) + _test_leak(min_iterations, max_iterations, im.putdata, im.get_flattened_data()) def test_leak_getlist() -> None: