mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	Restored testing of ImageFont class
This commit is contained in:
		
							parent
							
								
									78b96c0375
								
							
						
					
					
						commit
						a16974e240
					
				| 
						 | 
				
			
			@ -1053,11 +1053,11 @@ def test_too_many_characters(font):
 | 
			
		|||
    with pytest.raises(ValueError):
 | 
			
		||||
        transposed_font.getlength("A" * 1_000_001)
 | 
			
		||||
 | 
			
		||||
    default_font = ImageFont.load_default()
 | 
			
		||||
    imagefont = ImageFont.ImageFont()
 | 
			
		||||
    with pytest.raises(ValueError):
 | 
			
		||||
        default_font.getlength("A" * 1_000_001)
 | 
			
		||||
        imagefont.getlength("A" * 1_000_001)
 | 
			
		||||
    with pytest.raises(ValueError):
 | 
			
		||||
        default_font.getbbox("A" * 1_000_001)
 | 
			
		||||
        imagefont.getbbox("A" * 1_000_001)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@pytest.mark.parametrize(
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user