Skip to content

Commit 5439091

Browse files
committed
Simplified code
1 parent a5f036a commit 5439091

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Tests/test_file_spider.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,7 @@ def test_nonstack_file(self):
132132
def test_nonstack_dos(self):
133133
with Image.open(TEST_FILE) as im:
134134
for i, frame in enumerate(ImageSequence.Iterator(im)):
135-
if i > 1:
136-
self.fail("Non-stack DOS file test failed")
135+
self.assertLessEqual(i, 1, "Non-stack DOS file test failed")
137136

138137
# for issue #4093
139138
def test_odd_size(self):

0 commit comments

Comments
 (0)