From 54390913550c37b7cb23bea5ad46c95510322014 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Tue, 14 Jan 2020 20:06:00 +1100 Subject: [PATCH] Simplified code --- Tests/test_file_spider.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Tests/test_file_spider.py b/Tests/test_file_spider.py index 4f617ce51..73fb5caa1 100644 --- a/Tests/test_file_spider.py +++ b/Tests/test_file_spider.py @@ -132,8 +132,7 @@ class TestImageSpider(PillowTestCase): def test_nonstack_dos(self): with Image.open(TEST_FILE) as im: for i, frame in enumerate(ImageSequence.Iterator(im)): - if i > 1: - self.fail("Non-stack DOS file test failed") + self.assertLessEqual(i, 1, "Non-stack DOS file test failed") # for issue #4093 def test_odd_size(self):