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