Added test

This commit is contained in:
Andrew Murray 2023-03-04 11:44:45 +11:00
parent 2299490082
commit e953978b31

View File

@ -1065,3 +1065,9 @@ class TestFileLibTiff(LibTiffTestCase):
out = str(tmp_path / "temp.tif")
with pytest.raises(SystemError):
im.save(out, compression=compression)
def test_save_many_compressed(self, tmp_path):
im = hopper()
out = str(tmp_path / "temp.tif")
for _ in range(10000):
im.save(out, compression="jpeg")