Skip to content

Commit 90d4a8e

Browse files
committed
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, e953978, as a test for 2299490 that fixed a file descriptor leak. The TIFF cleanup path was subsequently cleaned up in June 2023 (e45da2a) and October 2024 (7edf952) to avoid `os.dup()` at all.
1 parent 8f92da6 commit 90d4a8e

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

Tests/test_file_libtiff.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,12 +1281,6 @@ def test_save_zero(self, compression: str | None, tmp_path: Path) -> None:
12811281
with pytest.raises(ValueError, match="cannot write empty image"):
12821282
im.save(out, compression=compression)
12831283

1284-
def test_save_many_compressed(self, tmp_path: Path) -> None:
1285-
im = hopper()
1286-
out = tmp_path / "temp.tif"
1287-
for _ in range(10000):
1288-
im.save(out, compression="jpeg")
1289-
12901284
@pytest.mark.parametrize(
12911285
"path, sizes",
12921286
(

0 commit comments

Comments
 (0)