Assert image type

This commit is contained in:
Andrew Murray 2025-03-18 23:15:31 +11:00
parent 24a0c4da71
commit a1d0d95e78
2 changed files with 2 additions and 0 deletions

View File

@ -176,6 +176,7 @@ def test_seek_tell() -> None:
def test_seek() -> None:
with Image.open(animated_test_file) as im:
assert isinstance(im, FliImagePlugin.FliImageFile)
im.seek(50)
assert_image_equal_tofile(im, "Tests/images/a_fli.png")

View File

@ -407,6 +407,7 @@ def test_save_netpbm_l_mode(tmp_path: Path) -> None:
def test_seek() -> None:
with Image.open("Tests/images/dispose_none.gif") as img:
assert isinstance(img, GifImagePlugin.GifImageFile)
frame_count = 0
try:
while True: