From 90d4a8e314c0ac773bb11ec8104743f8e4f28555 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Wed, 2 Sep 2026 09:27:08 +0300 Subject: [PATCH] Remove TestFileLibTiff.test_save_many_compressed() It is the slowest test of the suite, saving the same image 10 000 times to find leaking file descriptors. It was added in March 2023, e953978b, as a test for 229949008 that fixed a file descriptor leak. The TIFF cleanup path was subsequently cleaned up in June 2023 (e45da2ae17) and October 2024 (7edf952832) to avoid `os.dup()` at all. --- Tests/test_file_libtiff.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Tests/test_file_libtiff.py b/Tests/test_file_libtiff.py index 983f35b4a88..b56ca4c7d54 100644 --- a/Tests/test_file_libtiff.py +++ b/Tests/test_file_libtiff.py @@ -1281,12 +1281,6 @@ def test_save_zero(self, compression: str | None, tmp_path: Path) -> None: with pytest.raises(ValueError, match="cannot write empty image"): im.save(out, compression=compression) - def test_save_many_compressed(self, tmp_path: Path) -> None: - im = hopper() - out = tmp_path / "temp.tif" - for _ in range(10000): - im.save(out, compression="jpeg") - @pytest.mark.parametrize( "path, sizes", (