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