MCPcopy Index your code
hub / github.com/python-pillow/Pillow / test_incremental_tiff

Method test_incremental_tiff

Tests/test_imagefile.py:94–104  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

92
93 @pytest.mark.filterwarnings("ignore:Corrupt EXIF data")
94 def test_incremental_tiff(self) -> None:
95 with ImageFile.Parser() as p:
96 with open("Tests/images/hopper.tif", "rb") as f:
97 p.feed(f.read(1024))
98
99 # Check that insufficient data was given in the first feed
100 assert not p.image
101
102 p.feed(f.read())
103 assert p.image is not None
104 assert (128, 128) == p.image.size
105
106 @skip_unless_feature("webp")
107 def test_incremental_webp(self) -> None:

Callers

nothing calls this directly

Calls 3

feedMethod · 0.80
openFunction · 0.50
readMethod · 0.45

Tested by

no test coverage detected