mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 02:16:19 +03:00
Filter out UserWarning: Truncated File Read
This commit is contained in:
parent
2f8b3d0ff9
commit
d773fcd23d
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user