From 44c7fc9a232629bc8420b68256ea58922ea02e7e Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sun, 1 Aug 2021 14:22:00 +1000 Subject: [PATCH] Test passing Path to truetype --- Tests/test_imagefont.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tests/test_imagefont.py b/Tests/test_imagefont.py index 002641faa..0e1554463 100644 --- a/Tests/test_imagefont.py +++ b/Tests/test_imagefont.py @@ -1,4 +1,5 @@ import copy +from pathlib import Path import os import re import shutil @@ -87,6 +88,7 @@ class TestImageFont: pytest.skip("Non-ASCII path could not be created") ImageFont.truetype(tempfile, FONT_SIZE) + ImageFont.truetype(Path(tempfile), FONT_SIZE) def test_unavailable_layout_engine(self): have_raqm = ImageFont.core.HAVE_RAQM