mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-23 19:44:13 +03:00
Add type hints and fix some formatting for the apng repeated seeks test.
This commit is contained in:
parent
a844871c5e
commit
a6051a4045
|
@ -691,11 +691,11 @@ def test_different_modes_in_later_frames(mode, default_image, duplicate, tmp_pat
|
||||||
assert reloaded.mode == mode
|
assert reloaded.mode == mode
|
||||||
|
|
||||||
|
|
||||||
def test_apng_repeated_seeks_give_correct_info():
|
def test_apng_repeated_seeks_give_correct_info() -> None:
|
||||||
# https://github.com/python-pillow/Pillow/issues/7700
|
# https://github.com/python-pillow/Pillow/issues/7700
|
||||||
with Image.open("Tests/images/apng/repeated_seeks_give_correct_info.png") as im:
|
with Image.open("Tests/images/apng/repeated_seeks_give_correct_info.png") as im:
|
||||||
for i in range(5):
|
for i in range(5):
|
||||||
im.seek(0)
|
im.seek(0)
|
||||||
assert im.info["duration"] == 4000.0
|
assert im.info["duration"] == 4000
|
||||||
im.seek(1)
|
im.seek(1)
|
||||||
assert im.info["duration"] == 1000.0
|
assert im.info["duration"] == 1000
|
||||||
|
|
Loading…
Reference in New Issue
Block a user