From be192d8f695f8c0e819fbd94be7d254a6ed1de1b Mon Sep 17 00:00:00 2001 From: nulano Date: Mon, 8 Apr 2019 14:49:49 +0200 Subject: [PATCH] fix lint --- Tests/test_imagefont.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Tests/test_imagefont.py b/Tests/test_imagefont.py index 3e63a9e2b..11d2980fc 100644 --- a/Tests/test_imagefont.py +++ b/Tests/test_imagefont.py @@ -461,15 +461,18 @@ class TestImageFont(PillowTestCase): @unittest.skipIf(sys.platform.startswith('win32') and sys.version.startswith('2'), "requires Python 3.x on Windows") - def test_unicode_render(self): + 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) img = Image.new("RGB", (100, 60)) d = ImageDraw.Draw(img) d.text((10, 10), text, font=ttf) - self.assert_image_similar_tofile(img, "Tests/images/unicode_extended.png", self.metrics['textsize']) + + self.assert_image_similar_tofile(img, target, self.metrics['textsize']) def _test_fake_loading_font(self, path_to_fake, fontname): # Make a copy of FreeTypeFont so we can patch the original