Restored testing of ImageFont class

This commit is contained in:
Andrew Murray 2023-12-28 21:07:16 +11:00
parent 78b96c0375
commit a16974e240

View File

@ -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(