From b9e7f5c36cd4e775fa1b7cdefbb0b74fcf4d0624 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Fri, 4 Sep 2026 11:37:10 +0300 Subject: [PATCH] Remove unnecessary test_empty_image test Allocating a tall image with no width will still take some time to initialize the pointer array for the rows. --- Tests/test_image.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Tests/test_image.py b/Tests/test_image.py index 0fe5d3c807d..61dc0292ae3 100644 --- a/Tests/test_image.py +++ b/Tests/test_image.py @@ -30,7 +30,6 @@ hopper, is_win32, skip_unless_feature, - timeout_unless_slower_valgrind, ) TYPE_CHECKING = False @@ -570,13 +569,6 @@ def test_check_size(self) -> None: i = Image.new("RGB", [1, 1]) assert isinstance(i.size, tuple) - @timeout_unless_slower_valgrind(0.75) - @pytest.mark.parametrize( - "size", ((0, 10_000_000), (10_000_000, 0)), ids=("tall", "wide") - ) - def test_empty_image(self, size: tuple[int, int]) -> None: - Image.new("RGB", size) - def test_storage_neg(self) -> None: # Storage.c accepted negative values for xsize, ysize. Was # test_neg_ppm, but the core function for that has been