Pillow/Tests/test_fontfile.py
Hugo van Kemenade 53c3cd9f8e isort Tests
2024-01-20 13:23:03 +02:00

14 lines
241 B
Python

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)