From 25cf1010eb15a40629a4a54cd4534e799c7dd994 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Tue, 25 Jun 2019 22:20:57 +1000 Subject: [PATCH] Lint fixes --- Tests/test_imagefont.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Tests/test_imagefont.py b/Tests/test_imagefont.py index 02a369077aa..141ea84dd10 100644 --- a/Tests/test_imagefont.py +++ b/Tests/test_imagefont.py @@ -459,20 +459,25 @@ def test_unicode_pilfont(self): with self.assertRaises(UnicodeEncodeError): font.getsize(u"’") - @unittest.skipIf(sys.platform.startswith('win32') and sys.version.startswith('2'), - "requires Python 3.x on Windows") + @unittest.skipIf( + sys.platform.startswith("win32") and sys.version.startswith("2"), + "requires Python 3.x on Windows", + ) def test_unicode_extended(self): # issue #3777 text = u"A\u278A\U0001F12B" target = "Tests/images/unicode_extended.png" - ttf = ImageFont.truetype("Tests/fonts/NotoSansSymbols-Regular.ttf", - FONT_SIZE, layout_engine=self.LAYOUT_ENGINE) + ttf = ImageFont.truetype( + "Tests/fonts/NotoSansSymbols-Regular.ttf", + FONT_SIZE, + layout_engine=self.LAYOUT_ENGINE, + ) img = Image.new("RGB", (100, 60)) d = ImageDraw.Draw(img) d.text((10, 10), text, font=ttf) - self.assert_image_similar_tofile(img, target, self.metrics['multiline']) + self.assert_image_similar_tofile(img, target, self.metrics["multiline"]) def _test_fake_loading_font(self, path_to_fake, fontname): # Make a copy of FreeTypeFont so we can patch the original