We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69c080c commit dc6a3b3Copy full SHA for dc6a3b3
Tests/test_imagefont.py
@@ -465,7 +465,7 @@ def test_load_raises_if_image_not_found(tmp_path) -> None:
465
font_path.write_bytes(b"")
466
with pytest.raises(OSError) as excinfo:
467
ImageFont.load(font_path)
468
-
+
469
pre = tmp_path / "file"
470
msg = f"cannot find glyph data file {pre}.{{png|gif|pbm}}"
471
assert msg in str(excinfo.value)
src/PIL/ImageFont.py
@@ -856,7 +856,7 @@ def truetype(
856
:return: A font object.
857
:exception OSError: If the file could not be read.
858
:exception ValueError: If the font size is not greater than zero.
859
860
.. seealso:: :py:func:`PIL.ImageFont.load`
861
"""
862
0 commit comments