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

Method test_ico

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

Source from the content-addressed store, hash-verified

83 roundtrip("PDF")
84
85 def test_ico(self) -> None:
86 with open("Tests/images/python.ico", "rb") as f:
87 data = f.read()
88 with ImageFile.Parser() as p:
89 p.feed(data)
90 assert p.image is not None
91 assert (48, 48) == p.image.size
92
93 @pytest.mark.filterwarnings("ignore:Corrupt EXIF data")
94 def test_incremental_tiff(self) -> None:

Callers

nothing calls this directly

Calls 3

feedMethod · 0.80
openFunction · 0.50
readMethod · 0.45

Tested by

no test coverage detected