mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
14 lines
241 B
Python
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)
|