mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-18 11:14:46 +03:00
Test passing Path to truetype
This commit is contained in:
parent
ebf82e41c9
commit
44c7fc9a23
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user