Skip to content

Commit bd4fd58

Browse files
authored
Merge pull request #8668 from radarhere/spider_test
2 parents b69f204 + f36c667 commit bd4fd58

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/test_file_spider.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import pytest
99

10-
from PIL import Image, ImageSequence, SpiderImagePlugin
10+
from PIL import Image, SpiderImagePlugin
1111

1212
from .helper import assert_image_equal, hopper, is_pypy
1313

@@ -153,8 +153,8 @@ def test_nonstack_file() -> None:
153153

154154
def test_nonstack_dos() -> None:
155155
with Image.open(TEST_FILE) as im:
156-
for i, frame in enumerate(ImageSequence.Iterator(im)):
157-
assert i <= 1, "Non-stack DOS file test failed"
156+
with pytest.raises(EOFError):
157+
im.seek(0)
158158

159159

160160
# for issue #4093

0 commit comments

Comments
 (0)