Skip to content

Commit

Permalink
Merge pull request #1 from radarhere/fix_libtiff_file_pointer
Browse files Browse the repository at this point in the history
Added test
  • Loading branch information
fcarron committed Mar 4, 2023
2 parents 2299490 + e953978 commit bf27074
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Tests/test_file_libtiff.py
Expand Up @@ -1065,3 +1065,9 @@ def test_save_zero(self, compression, tmp_path):
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")

0 comments on commit bf27074

Please sign in to comment.