Skip to content

Commit 9d373ef

Browse files
committed
fix tests
1 parent ee119b0 commit 9d373ef

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

python/pydantic_core/core_schema.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4000,8 +4000,9 @@ def definition_reference_schema(
40004000
'decimal_max_digits',
40014001
'decimal_max_places',
40024002
'decimal_whole_digits',
4003-
'complex_parsing',
40044003
'complex_type',
4004+
'complex_type_py_strict',
4005+
'complex_str_parsing',
40054006
]
40064007

40074008

tests/test_errors.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,12 +397,17 @@ def f(input_value, info):
397397
),
398398
(
399399
'complex_type',
400-
'Input should be a valid complex number',
400+
'Input should be a valid python complex object, a number, or a valid complex string following the rules at https://docs.python.org/3/library/functions.html#complex',
401401
None,
402402
),
403403
(
404-
'complex_parsing',
405-
'Input should be a valid complex string following the rule at https://docs.python.org/3/library/functions.html#complex',
404+
'complex_type_py_strict',
405+
'Input should be a valid Python complex object',
406+
None,
407+
),
408+
(
409+
'complex_str_parsing',
410+
'Input should be a valid complex string following the rules at https://docs.python.org/3/library/functions.html#complex',
406411
None,
407412
),
408413
]

0 commit comments

Comments
 (0)