This commit is contained in:
Hugo 2018-10-01 13:22:18 +03:00
parent d1ca4916e0
commit a3b0659790
4 changed files with 4 additions and 4 deletions

View File

@ -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")

View File

@ -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()

View File

@ -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):

View File

@ -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