Pillow/Tests/test_fontfile.py

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

16 lines
281 B
Python
Raw Permalink Normal View History

from __future__ import annotations
2024-01-20 14:23:03 +03:00
2024-01-27 07:19:43 +03:00
from pathlib import Path
import pytest
from PIL import FontFile
2024-01-27 07:19:43 +03:00
def test_save(tmp_path: Path) -> None:
tempname = str(tmp_path / "temp.pil")
font = FontFile.FontFile()
with pytest.raises(ValueError):
font.save(tempname)