Skip to content

Commit bf27074

Browse files
authored
Merge pull request #1 from radarhere/fix_libtiff_file_pointer
Added test
2 parents 2299490 + e953978 commit bf27074

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Tests/test_file_libtiff.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,3 +1065,9 @@ def test_save_zero(self, compression, tmp_path):
10651065
out = str(tmp_path / "temp.tif")
10661066
with pytest.raises(SystemError):
10671067
im.save(out, compression=compression)
1068+
1069+
def test_save_many_compressed(self, tmp_path):
1070+
im = hopper()
1071+
out = str(tmp_path / "temp.tif")
1072+
for _ in range(10000):
1073+
im.save(out, compression="jpeg")

0 commit comments

Comments
 (0)