File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -1040,21 +1040,21 @@ def test_render_mono_size():
1040
1040
1041
1041
def test_too_many_characters (font ):
1042
1042
with pytest .raises (ValueError ):
1043
- font .getlength ("A" * 1000001 )
1043
+ font .getlength ("A" * 1_000_001 )
1044
1044
with pytest .raises (ValueError ):
1045
- font .getbbox ("A" * 1000001 )
1045
+ font .getbbox ("A" * 1_000_001 )
1046
1046
with pytest .raises (ValueError ):
1047
- font .getmask2 ("A" * 1000001 )
1047
+ font .getmask2 ("A" * 1_000_001 )
1048
1048
1049
1049
transposed_font = ImageFont .TransposedFont (font )
1050
1050
with pytest .raises (ValueError ):
1051
- transposed_font .getlength ("A" * 1000001 )
1051
+ transposed_font .getlength ("A" * 1_000_001 )
1052
1052
1053
1053
default_font = ImageFont .load_default ()
1054
1054
with pytest .raises (ValueError ):
1055
- default_font .getlength ("A" * 1000001 )
1055
+ default_font .getlength ("A" * 1_000_001 )
1056
1056
with pytest .raises (ValueError ):
1057
- default_font .getbbox ("A" * 1000001 )
1057
+ default_font .getbbox ("A" * 1_000_001 )
1058
1058
1059
1059
1060
1060
@pytest .mark .parametrize (
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ class Layout(IntEnum):
41
41
RAQM = 1
42
42
43
43
44
- MAX_STRING_LENGTH = 1000000
44
+ MAX_STRING_LENGTH = 1_000_000
45
45
46
46
47
47
try :
You can’t perform that action at this time.
0 commit comments