@@ -165,7 +165,7 @@ def test_negative_int(input_value, expected):
165
165
(
166
166
int (1e30 ),
167
167
Err (
168
- 'Unable to parse input string as an integer, exceed maximum size '
168
+ 'Unable to parse input string as an integer, exceeded maximum size '
169
169
'[type=int_parsing_size, input_value=1e+30, input_type=float]'
170
170
),
171
171
),
@@ -197,7 +197,10 @@ def test_positive_json(input_value, expected):
197
197
(0 , Err ('Input should be less than 0 [type=less_than, input_value=0, input_type=int]' )),
198
198
(- i64_max , - i64_max ),
199
199
(- i64_max - 1 , - i64_max - 1 ),
200
- (- i64_max * 2 , Err (' Unable to parse input string as an integer, exceed maximum size [type=int_parsing_size' )),
200
+ (
201
+ - i64_max * 2 ,
202
+ Err (' Unable to parse input string as an integer, exceeded maximum size [type=int_parsing_size' ),
203
+ ),
201
204
],
202
205
)
203
206
def test_negative_json (input_value , expected ):
@@ -345,18 +348,18 @@ def test_too_long():
345
348
346
349
assert exc_info .value .errors (include_url = False ) == [
347
350
{
348
- 'type' : 'int_parsing ' ,
351
+ 'type' : 'int_parsing_size ' ,
349
352
'loc' : (),
350
- 'msg' : 'Input should be a valid integer, unable to parse string as an integer' ,
353
+ 'msg' : 'Unable to parse input string as an integer, exceeded maximum size ' ,
351
354
'input' : '1' * 4301 ,
352
355
}
353
356
]
354
357
# insert_assert(repr(exc_info.value))
355
358
assert repr (exc_info .value ) == (
356
359
"1 validation error for int\n "
357
- " Input should be a valid integer, unable to parse string as an integer "
358
- "[type=int_parsing , input_value='111111111111111111111111...11111111111111111111111', input_type=str]\n "
359
- f" For further information visit https://errors.pydantic.dev/{ __version__ } /v/int_parsing "
360
+ " Unable to parse input string as an integer, exceeded maximum size "
361
+ "[type=int_parsing_size , input_value='111111111111111111111111...11111111111111111111111', input_type=str]\n "
362
+ f" For further information visit https://errors.pydantic.dev/{ __version__ } /v/int_parsing_size "
360
363
)
361
364
362
365
0 commit comments