From a7d75c4b21c85f396281645d01b65ed047864446 Mon Sep 17 00:00:00 2001 From: Fran Barba Date: Wed, 28 Jun 2017 12:12:44 +0200 Subject: [PATCH] Applied Hugovk recommendations --- Tests/test_file_jpeg.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Tests/test_file_jpeg.py b/Tests/test_file_jpeg.py index 7b7c2873b..cc7180093 100644 --- a/Tests/test_file_jpeg.py +++ b/Tests/test_file_jpeg.py @@ -143,10 +143,8 @@ class TestFileJpeg(PillowTestCase): try: im.save(f, format='JPEG', progressive=True,quality=95, icc_profile=icc_profile, optimize=True) - assert True except IOError: - assert False, "Failed saving image with icc larger than image size" - + self.fail("Failed saving image with icc larger than image size") def test_optimize(self): im1 = self.roundtrip(hopper())