mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-11 17:56:18 +03:00
Added underscores for readability
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
parent
1fe1bb49c4
commit
d398fedb9d
|
@ -1040,21 +1040,21 @@ def test_render_mono_size():
|
||||||
|
|
||||||
def test_too_many_characters(font):
|
def test_too_many_characters(font):
|
||||||
with pytest.raises(ValueError):
|
with pytest.raises(ValueError):
|
||||||
font.getlength("A" * 1000001)
|
font.getlength("A" * 1_000_001)
|
||||||
with pytest.raises(ValueError):
|
with pytest.raises(ValueError):
|
||||||
font.getbbox("A" * 1000001)
|
font.getbbox("A" * 1_000_001)
|
||||||
with pytest.raises(ValueError):
|
with pytest.raises(ValueError):
|
||||||
font.getmask2("A" * 1000001)
|
font.getmask2("A" * 1_000_001)
|
||||||
|
|
||||||
transposed_font = ImageFont.TransposedFont(font)
|
transposed_font = ImageFont.TransposedFont(font)
|
||||||
with pytest.raises(ValueError):
|
with pytest.raises(ValueError):
|
||||||
transposed_font.getlength("A" * 1000001)
|
transposed_font.getlength("A" * 1_000_001)
|
||||||
|
|
||||||
default_font = ImageFont.load_default()
|
default_font = ImageFont.load_default()
|
||||||
with pytest.raises(ValueError):
|
with pytest.raises(ValueError):
|
||||||
default_font.getlength("A" * 1000001)
|
default_font.getlength("A" * 1_000_001)
|
||||||
with pytest.raises(ValueError):
|
with pytest.raises(ValueError):
|
||||||
default_font.getbbox("A" * 1000001)
|
default_font.getbbox("A" * 1_000_001)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
|
|
|
@ -41,7 +41,7 @@ class Layout(IntEnum):
|
||||||
RAQM = 1
|
RAQM = 1
|
||||||
|
|
||||||
|
|
||||||
MAX_STRING_LENGTH = 1000000
|
MAX_STRING_LENGTH = 1_000_000
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user