Merge pull request #4993 from radarhere/antivirus

Moved string_dimension image to pillow-depends
This commit is contained in:
Hugo van Kemenade 2020-10-19 14:25:05 +03:00 committed by GitHub
commit d0e2d03411
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

Binary file not shown.

View File

@ -598,6 +598,10 @@ class TestFileTiff:
# 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):