Pillow/Tests/test_fontfile.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
240 B
Python
Raw Normal View History

from __future__ import annotations
import pytest
from PIL import FontFile
def test_save(tmp_path):
tempname = str(tmp_path / "temp.pil")
font = FontFile.FontFile()
with pytest.raises(ValueError):
font.save(tempname)