Added underscores for readability

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
Andrew Murray 2023-07-01 07:25:18 +10:00 committed by GitHub
parent 1fe1bb49c4
commit d398fedb9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -1040,21 +1040,21 @@ def test_render_mono_size():
def test_too_many_characters(font):
with pytest.raises(ValueError):
font.getlength("A" * 1000001)
font.getlength("A" * 1_000_001)
with pytest.raises(ValueError):
font.getbbox("A" * 1000001)
font.getbbox("A" * 1_000_001)
with pytest.raises(ValueError):
font.getmask2("A" * 1000001)
font.getmask2("A" * 1_000_001)
transposed_font = ImageFont.TransposedFont(font)
with pytest.raises(ValueError):
transposed_font.getlength("A" * 1000001)
transposed_font.getlength("A" * 1_000_001)
default_font = ImageFont.load_default()
with pytest.raises(ValueError):
default_font.getlength("A" * 1000001)
default_font.getlength("A" * 1_000_001)
with pytest.raises(ValueError):
default_font.getbbox("A" * 1000001)
default_font.getbbox("A" * 1_000_001)
@pytest.mark.parametrize(

View File

@ -41,7 +41,7 @@ class Layout(IntEnum):
RAQM = 1
MAX_STRING_LENGTH = 1000000
MAX_STRING_LENGTH = 1_000_000
try: