From 9a1d35dd8c6edde764c0a657cb47e3e689f9a254 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sun, 23 Aug 2026 05:09:49 +1000 Subject: [PATCH] Removed unnecessary variables --- Tests/test_image_getdata.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/test_image_getdata.py b/Tests/test_image_getdata.py index 9397724acef..15ce0d307aa 100644 --- a/Tests/test_image_getdata.py +++ b/Tests/test_image_getdata.py @@ -46,7 +46,7 @@ def test_index_out_of_range() -> None: hopper_data = hopper().getdata() for index in (128 * 128, -128 * 128 - 1, 1 << 40): with pytest.raises(IndexError): - _ = hopper_data[index] + hopper_data[index] def test_iteration_matches_indexing() -> None: @@ -103,7 +103,7 @@ def test_empty_image(size: tuple[int, int]) -> None: assert len(data) == 0 assert list(data) == [] with pytest.raises(IndexError): - _ = data[0] + data[0] def test_outlives_the_image() -> None: