mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
flake8
This commit is contained in:
parent
d1ca4916e0
commit
a3b0659790
|
@ -110,7 +110,7 @@ class PillowTestCase(unittest.TestCase):
|
|||
try:
|
||||
url = test_image_results.upload(a, b)
|
||||
logger.error("Url for test images: %s" % url)
|
||||
except Exception as msg:
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
self.fail(msg or "got different content")
|
||||
|
|
|
@ -415,7 +415,7 @@ class TestFileLibTiff(LibTiffTestCase):
|
|||
im = Image.open('Tests/images/multipage.tiff')
|
||||
frames = im.n_frames
|
||||
self.assertEqual(frames, 3)
|
||||
for idx in range(frames):
|
||||
for _ in range(frames):
|
||||
im.seek(0)
|
||||
# Should not raise ValueError: I/O operation on closed file
|
||||
im.load()
|
||||
|
|
|
@ -56,7 +56,7 @@ class TestImage(PillowTestCase):
|
|||
self.assertEqual(im.width, 1)
|
||||
self.assertEqual(im.height, 2)
|
||||
|
||||
with self.assertRaises(AttributeError) as e:
|
||||
with self.assertRaises(AttributeError):
|
||||
im.size = (3, 4)
|
||||
|
||||
def test_invalid_image(self):
|
||||
|
|
|
@ -11,7 +11,7 @@ try:
|
|||
import Tkinter as tk
|
||||
dir(ImageTk)
|
||||
HAS_TK = True
|
||||
except (OSError, ImportError) as v:
|
||||
except (OSError, ImportError):
|
||||
# Skipped via setUp()
|
||||
HAS_TK = False
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user