Filter out UserWarning: Truncated File Read

This commit is contained in:
Hugo van Kemenade 2021-08-24 11:33:43 +03:00
parent 2f8b3d0ff9
commit d773fcd23d

View File

@ -698,6 +698,8 @@ class TestFileTiff:
# Ignore this UserWarning which triggers for four tags: # Ignore this UserWarning which triggers for four tags:
# "Possibly corrupt EXIF data. Expecting to read 50404352 bytes but..." # "Possibly corrupt EXIF data. Expecting to read 50404352 bytes but..."
@pytest.mark.filterwarnings("ignore:Possibly corrupt EXIF data") @pytest.mark.filterwarnings("ignore:Possibly corrupt EXIF data")
# Ignore this UserWarning:
@pytest.mark.filterwarnings("ignore:Truncated File Read")
@pytest.mark.skipif( @pytest.mark.skipif(
not os.path.exists("Tests/images/string_dimension.tiff"), not os.path.exists("Tests/images/string_dimension.tiff"),
reason="Extra image files not installed", reason="Extra image files not installed",