From faa22386d1485d282831f744019e28f18d1d904c Mon Sep 17 00:00:00 2001 From: paddywwoof Date: Sun, 4 Aug 2019 19:38:31 +0100 Subject: [PATCH] Lint unhappy about not using im! --- Tests/test_file_jpeg.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Tests/test_file_jpeg.py b/Tests/test_file_jpeg.py index dd83e1c06..7594cb491 100644 --- a/Tests/test_file_jpeg.py +++ b/Tests/test_file_jpeg.py @@ -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")