mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			281 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			281 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from __future__ import annotations
 | 
						|
 | 
						|
from pathlib import Path
 | 
						|
 | 
						|
import pytest
 | 
						|
 | 
						|
from PIL import FontFile
 | 
						|
 | 
						|
 | 
						|
def test_save(tmp_path: Path) -> None:
 | 
						|
    tempname = str(tmp_path / "temp.pil")
 | 
						|
 | 
						|
    font = FontFile.FontFile()
 | 
						|
    with pytest.raises(ValueError):
 | 
						|
        font.save(tempname)
 |