Lint unhappy about not using im!

This commit is contained in:
paddywwoof 2019-08-04 19:38:31 +01:00
parent 4ce0b2c367
commit faa22386d1

View File

@ -637,6 +637,7 @@ class TestFileJpeg(PillowTestCase):
# This image has some corrupt exif offsets that unpack to values greater
# than ssize_t on 32 bit systems
im = Image.open("Tests/images/corrupt_exif.jpg")
assert im is not None # if previous line fails then im will be undefined
def test_photoshop(self):
im = Image.open("Tests/images/photoshop-200dpi.jpg")