Skip to content

Commit 1ad6184

Browse files
committed
fix: unit test
1 parent 8ee844e commit 1ad6184

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pydantic_core/core_schema.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3802,6 +3802,7 @@ def definition_reference_schema(
38023802
'int_from_float',
38033803
'float_type',
38043804
'float_parsing',
3805+
'float_parsing_size',
38053806
'bytes_type',
38063807
'bytes_too_short',
38073808
'bytes_too_long',

tests/test_errors.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ def f(input_value, info):
233233
('less_than_equal', 'Input should be less than or equal to 42.1', {'le': 42.1}),
234234
('float_type', 'Input should be a valid number', None),
235235
('float_parsing', 'Input should be a valid number, unable to parse string as an number', None),
236+
('float_parsing_size', 'Unable to parse input string as an number, exceeded maximum size', None),
236237
('bytes_type', 'Input should be a valid bytes', None),
237238
('bytes_too_short', 'Data should have at least 42 bytes', {'min_length': 42}),
238239
('bytes_too_long', 'Data should have at most 42 bytes', {'max_length': 42}),

0 commit comments

Comments
 (0)