Summary: | dev-python/pydantic-2.7.1 fails tests: FAILED test_generics.py::test_serialize_unsubstituted_typevars_bound_default_supported - NotImplementedError: Pydantic does not support mixing more than one of TypeVar bounds, constraints and defaults | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Python Gentoo Team <python> |
Status: | CONFIRMED --- | ||
Severity: | normal | Keywords: | TESTFAILURE |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log |
Description
Agostino Sarubbo
![]() Created attachment 893942 [details]
build.log
build log and emerge --info
Error(s) that match a know pattern in addition to what has been reported in the summary: model_ref = 'tests.test_generics.test_serialize_unsubstituted_typevars_bound_default_supported.<locals>.Error:110351926582704' E NotImplementedError: Pydantic does not support mixing more than one of TypeVar bounds, constraints and defaults E TypeError: typing.List[tests.test_generics.test_generic_model_as_parameter_to_generic_type_alias.<locals>.GenericPydanticModel] is not a generic class E pydantic.errors.PydanticUserError: Cannot use `config` when the type is a BaseModel, dataclass or TypedDict. These types can have their own config and setting the config via the `config` parameter to TypeAdapter will not override it, thus the `config` you passed to TypeAdapter becomes meaningless, which is probably not what you want. E AssertionError: assert 'mongodb+srv://user:pass@localhost:27017/app' == 'mongodb+srv://user:pass@localhost/app' E AssertionError: assert not True E AssertionError: assert {'$defs': {'SomeAlias': {'type': 'integer'}}, 'allOf': [{'$ref': '#/$defs/SomeAlias'}], 'title': 'abc'} == {'$defs': {'SomeAlias': {'type': 'integer', 'description': 'number'}}, 'allOf': [{'$ref': '#/$defs/SomeAlias'}], 'title': 'abc'} E AssertionError: assert {'CreateItem1': {'properties': {'type': {'const': 'item1', 'enum': ['item1'], 'title': 'Type', 'type': 'string'}, 'id': {'title': 'Id', 'type': 'integer'}}, 'required': ['type', 'id'], 'title': 'CreateItem1', 'type': 'object'}, 'CreateItem2': {'properties': {'type': {'const': 'item2', 'enum': ['item2'], 'title': 'Type', 'type': 'string'}, 'id': {'title': 'Id', 'type': 'integer'}}, 'required': ['type', 'id'], 'title': 'CreateItem2', 'type': 'object'}, 'CreateObjectDto': {'properties': {'id': {'title': 'Id', 'type': 'integer'}, 'items': {'items': {'oneOf': [{'$ref': '#/$defs/CreateItem1'}, {'$ref': '#/$defs/CreateItem2'}]}, 'title': 'Items', 'type': 'array'}}, 'required': ['id', 'items'], 'title': 'CreateObjectDto', 'type': 'object'}} == {'CreateItem1': {'properties': {'id': {'title': 'Id', 'type': 'integer'}, 'type': {'const': 'item1', 'title': 'Type'}}, 'required': ['type', 'id'], 'title': 'CreateItem1', 'type': 'object'}, 'CreateItem2': {'properties': {'id': {'title': 'Id', 'type': 'integer'}, 'type': {'const': 'item2', 'title': 'Type'}}, 'required': ['type', 'id'], 'title': 'CreateItem2', 'type': 'object'}, 'CreateObjectDto': {'properties': {'id': {'title': 'Id', 'type': 'integer'}, 'items': {'items': {'discriminator': {'mapping': {'item1': '#/$defs/CreateItem1', 'item2': '#/$defs/CreateItem2'}, 'propertyName': 'type'}, 'oneOf': [{'$ref': '#/$defs/CreateItem1'}, {'$ref': '#/$defs/CreateItem2'}]}, 'title': 'Items', 'type': 'array'}}, 'required': ['id', 'items'], 'title': 'CreateObjectDto', 'type': 'object'}} E AssertionError: assert {'properties': {}, 'title': 'Model', 'type': 'object'} == {} E AttributeError: 'dict' object has no attribute 'comp_1' E TypeError: 'ValidationInfo' object cannot be interpreted as an integer FAILED tests/test_generics.py::test_serialize_unsubstituted_typevars_bound_default_supported - NotImplementedError: Pydantic does not support mixing more than one of TypeVar bounds, constraints and defaults SKIPPED [1] tests/test_internal.py:185: could not import 'devtools': No module named 'devtools' not import 'devtools': No module named 'devtools') [1514/4598] tests/test_datetime.py::test_unicode_decode_error[d] PASSED [ 792/4598] tests/test_datetime.py::test_unicode_decode_error[dt0] PASSED [ 791/4598] tests/test_datetime.py::test_unicode_decode_error[dt1] PASSED [ 794/4598] tests/test_datetime.py::test_unicode_decode_error[t] PASSED [ 793/4598] tests/test_decorators.py::test_inspect_validator_error[after] PASSED [ 850/4598] tests/test_decorators.py::test_inspect_validator_error[before] PASSED [ 849/4598] tests/test_decorators.py::test_inspect_validator_error[plain] PASSED [ 851/4598] tests/test_edge_cases.py::test_typed_dict_error[1-errors0] PASSED [1020/4598] tests/test_edge_cases.py::test_typed_dict_error[value1-errors1] PASSED [1021/4598] tests/test_edge_cases.py::test_typed_dict_error[value2-errors2] PASSED [1022/4598] tests/test_generics.py::test_serialize_unsubstituted_typevars_bound_default_supported FAILED [1499/4598] tests/test_networks.py::test_postgres_dsns_validation_error[http://example.org-error_message4] PASSED [2632/4598] tests/test_networks.py::test_postgres_dsns_validation_error[postgres://user:pass@/foo/bar:5432,host1.db.net:4321/app-error_message2] PASSED [2630/4598] tests/test_networks.py::test_postgres_dsns_validation_error[postgres://user:pass@host1.db.net,/app-error_message1] PASSED [2629/4598] tests/test_networks.py::test_postgres_dsns_validation_error[postgres://user:pass@host1.db.net:4321,/foo/bar:5432/app-error_message0] PASSED [2628/4598] tests/test_networks.py::test_postgres_dsns_validation_error[postgres://user@/foo/bar:5432/app-error_message3] PASSED [2631/4598] tests/test_root_model.py::test_extra_error[allow] PASSED [2990/4598] tests/test_root_model.py::test_extra_error[forbid] PASSED [2991/4598] tests/test_root_model.py::test_extra_error[ignore] PASSED [2989/4598] tests/test_types.py::test_finite_float_validation_error[-inf] PASSED [3575/4598] tests/test_types.py::test_finite_float_validation_error[inf] PASSED [3574/4598] tests/test_types.py::test_finite_float_validation_error[nan] PASSED [3576/4598] tests/test_types.py::test_pattern_error[re.Pattern-pattern_regex0] PASSED [3779/4598] tests/test_types.py::test_pattern_error[re.Pattern-pattern_regex1] PASSED [3780/4598] tests/test_types.py::test_pattern_error[typing.Pattern-pattern_type0] PASSED [3781/4598] tests/test_types.py::test_pattern_error[typing.Pattern-pattern_type1] PASSED [3782/4598] tests/test_types.py::test_pattern_error[typing.Pattern[bytes]-pattern_bytes_type-non_bytes] PASSED [3786/4598] tests/test_types.py::test_pattern_error[typing.Pattern[bytes]-pattern_bytes_type-str] PASSED [3787/4598] tests/test_types.py::test_pattern_error[typing.Pattern[bytes]-pattern_type] PASSED [3788/4598] tests/test_types.py::test_pattern_error[typing.Pattern[str]-pattern_str_type-bytes] PASSED [3784/4598] tests/test_types.py::test_pattern_error[typing.Pattern[str]-pattern_str_type-non_str] PASSED [3783/4598] tests/test_types.py::test_pattern_error[typing.Pattern[str]-pattern_type] PASSED [3785/4598] tests/test_utils.py::test_smart_deepcopy_error[RuntimeError] PASSED [4316/4598] tests/test_utils.py::test_smart_deepcopy_error[TypeError] PASSED [4314/4598] tests/test_utils.py::test_smart_deepcopy_error[ValueError] PASSED [4315/4598] tests/test_validate_call.py::test_classmethod_order_error[classmethod] PASSED [4409/4598] tests/test_validate_call.py::test_classmethod_order_error[staticmethod] PASSED [4408/4598] tests/test_validators.py::test_wildcard_validator_error[field_validator-pytest_warns1] PASSED [4455/4598] tests/test_validators.py::test_wildcard_validator_error[validator-pytest_warns0] PASSED [4454/4598] |