mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-03 21:24:31 +03:00
Merge pull request #7647 from radarhere/imagefont
This commit is contained in:
commit
2de26d0dae
|
@ -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