mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-22 14:50:33 +03:00
add test case for seeking to the same frame
This commit is contained in:
parent
8fa280f6a5
commit
58c37bf7eb
|
@ -59,6 +59,13 @@ def test_seeking() -> None:
|
|||
assert im1.info["timestamp"] == im1.info["timestamp"]
|
||||
assert total_dur == 8000
|
||||
|
||||
assert im1.tell() == 0 and im2.tell() == 0
|
||||
|
||||
im1.seek(0)
|
||||
im1.load()
|
||||
im2.seek(0)
|
||||
im2.load()
|
||||
|
||||
|
||||
def test_seek_errors() -> None:
|
||||
with Image.open("Tests/images/iss634.jxl") as im:
|
||||
|
|
Loading…
Reference in New Issue
Block a user