Merge pull request #6082 from radarhere/duplicate

This commit is contained in:
Hugo van Kemenade 2022-02-22 09:17:59 +02:00 committed by GitHub
commit bd96420032
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,19 +88,6 @@ class TestImageFont:
ImageFont.truetype(tempfile, FONT_SIZE)
def test_unavailable_layout_engine(self):
have_raqm = ImageFont.core.HAVE_RAQM
ImageFont.core.HAVE_RAQM = False
try:
ttf = ImageFont.truetype(
FONT_PATH, FONT_SIZE, layout_engine=ImageFont.Layout.RAQM
)
finally:
ImageFont.core.HAVE_RAQM = have_raqm
assert ttf.layout_engine == ImageFont.Layout.BASIC
def _render(self, font):
txt = "Hello World!"
ttf = ImageFont.truetype(font, FONT_SIZE, layout_engine=self.LAYOUT_ENGINE)