We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e946c7b commit 5575c1dCopy full SHA for 5575c1d
Tests/test_file_fli.py
@@ -1,5 +1,6 @@
1
from __future__ import annotations
2
3
+import io
4
import warnings
5
6
import pytest
@@ -132,6 +133,15 @@ def test_eoferror() -> None:
132
133
im.seek(n_frames - 1)
134
135
136
+def test_missing_frame_size() -> None:
137
+ with open(animated_test_file, "rb") as fp:
138
+ data = fp.read()
139
+ data = data[:6188]
140
+ with Image.open(io.BytesIO(data)) as im:
141
+ with pytest.raises(EOFError, match="missing frame size"):
142
+ im.seek(1)
143
+
144
145
def test_seek_tell() -> None:
146
with Image.open(animated_test_file) as im:
147
layer_number = im.tell()
0 commit comments