Use ImageFile._Tile

This commit is contained in:
Andrew Murray 2025-01-07 21:33:57 +11:00
parent 128f3f46d4
commit aef6df2d04

View File

@ -1030,7 +1030,7 @@ class TestFileJpeg:
with Image.open(TEST_FILE) as im:
im.tile = [
("INFINITE", (0, 0, 128, 128), 0, ("RGB", 0, 1)),
ImageFile._Tile("INFINITE", (0, 0, 128, 128), 0, ("RGB", 0, 1)),
]
ImageFile.LOAD_TRUNCATED_IMAGES = True
im.load()