Skip to content

Commit 8cc3ac3

Browse files
radarherehugovk
authored andcommitted
Added test
1 parent 39e3636 commit 8cc3ac3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Tests/test_file_libtiff.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -968,10 +968,11 @@ def test_realloc_overflow(self):
968968
assert str(e.value) == "-9"
969969
TiffImagePlugin.READ_LIBTIFF = False
970970

971-
def test_save_multistrip(self, tmp_path):
971+
@pytest.mark.parametrize("compression", ("tiff_adobe_deflate", "jpeg"))
972+
def test_save_multistrip(self, compression, tmp_path):
972973
im = hopper("RGB").resize((256, 256))
973974
out = str(tmp_path / "temp.tif")
974-
im.save(out, compression="tiff_adobe_deflate")
975+
im.save(out, compression=compression)
975976

976977
with Image.open(out) as im:
977978
# Assert that there are multiple strips

0 commit comments

Comments
 (0)