From fd7a675de680f0ae8d17cba2898632e17bbb7b3b Mon Sep 17 00:00:00 2001 From: Fahad Al-Saidi Date: Wed, 14 Dec 2016 11:49:21 +0400 Subject: [PATCH] adding KeyError exception so the test not fail when there is no raqm lib. --- Tests/test_imagefontctl.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tests/test_imagefontctl.py b/Tests/test_imagefontctl.py index 31e9630b6..2a6463159 100644 --- a/Tests/test_imagefontctl.py +++ b/Tests/test_imagefontctl.py @@ -129,6 +129,10 @@ except ImportError: class TestImagecomplextext(PillowTestCase): def test_skip(self): self.skipTest("ImportError") +except KeyError: + class TestImagecomplextext(PillowTestCase): + def test_skip(self): + self.skipTest("KeyError") if __name__ == '__main__': unittest.main()