Test apng repeated seeks 3 times instead of 5.

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
Erik Soma 2024-01-09 08:55:49 -05:00 committed by GitHub
parent a6051a4045
commit dc6d7611e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -692,9 +692,8 @@ def test_different_modes_in_later_frames(mode, default_image, duplicate, tmp_pat
def test_apng_repeated_seeks_give_correct_info() -> None:
# https://github.com/python-pillow/Pillow/issues/7700
with Image.open("Tests/images/apng/repeated_seeks_give_correct_info.png") as im:
for i in range(5):
for i in range(3):
im.seek(0)
assert im.info["duration"] == 4000
im.seek(1)