Skip to content

Commit aa862b2

Browse files
committed
Reduce test_empty_image arguments to 10M instead of 100M
The tall case still needs to allocate the row-pointer table `im->image`, which is still roughly 700 megabytes, which evidently can be slow
1 parent a21f0f5 commit aa862b2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Tests/test_image.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,9 @@ def test_check_size(self) -> None:
572572
assert isinstance(i.size, tuple)
573573

574574
@timeout_unless_slower_valgrind(0.75)
575-
@pytest.mark.parametrize("size", ((0, 100000000), (100000000, 0)))
575+
@pytest.mark.parametrize(
576+
"size", ((0, 10_000_000), (10_000_000, 0)), ids=("tall", "wide")
577+
)
576578
def test_empty_image(self, size: tuple[int, int]) -> None:
577579
Image.new("RGB", size)
578580

0 commit comments

Comments
 (0)