diff --git a/Tests/images/string_dimension.tiff b/Tests/images/string_dimension.tiff deleted file mode 100644 index d0b55830128..00000000000 Binary files a/Tests/images/string_dimension.tiff and /dev/null differ diff --git a/Tests/test_file_tiff.py b/Tests/test_file_tiff.py index bcffecd3536..f644ef8870e 100644 --- a/Tests/test_file_tiff.py +++ b/Tests/test_file_tiff.py @@ -598,6 +598,10 @@ def test_close_on_load_nonexclusive(self, tmp_path): # Ignore this UserWarning which triggers for four tags: # "Possibly corrupt EXIF data. Expecting to read 50404352 bytes but..." @pytest.mark.filterwarnings("ignore:Possibly corrupt EXIF data") + @pytest.mark.skipif( + not os.path.exists("Tests/images/string_dimension.tiff"), + reason="Extra image files not installed", + ) def test_string_dimension(self): # Assert that an error is raised if one of the dimensions is a string with pytest.raises(ValueError):