(self)
| 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: |