From 22d2a5e49cb69aafb2ce5204d36e6ec827d64279 Mon Sep 17 00:00:00 2001 From: Fahad Al-Saidi Date: Wed, 14 Dec 2016 11:10:15 +0400 Subject: [PATCH] only catch ImportError same as test_imagefont.py --- Tests/test_imagefontctl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/test_imagefontctl.py b/Tests/test_imagefontctl.py index 6c03fb168..31e9630b6 100644 --- a/Tests/test_imagefontctl.py +++ b/Tests/test_imagefontctl.py @@ -125,10 +125,10 @@ try: self.assert_image_similar(im, target_img, .5) -except (KeyError, ImportError): +except ImportError: class TestImagecomplextext(PillowTestCase): def test_skip(self): - self.skipTest("KeyError") + self.skipTest("ImportError") if __name__ == '__main__': unittest.main()