Merge pull request #7647 from radarhere/imagefont

This commit is contained in:
Hugo van Kemenade 2023-12-29 23:05:05 +02:00 committed by GitHub
commit 2de26d0dae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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(