New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
⬆ Upgrade pydantic-core
to v2.2.0
#6589
Conversation
Deploying with Cloudflare Pages
|
actual_errors = exc_info.value.errors(include_url=False) | ||
if expected_errors != actual_errors: | ||
pytest.fail(f'Actual errors: {actual_errors}\nExpected errors: {expected_errors}') | ||
_assert_eq( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like diff shows +
for the right part but pytest uses +
for the left part in assert left == right
. Thus, this is reversed to match pytest.
@@ -233,6 +233,7 @@ def test_error_codes(): | |||
assert code_error_codes == documented_error_codes, 'Error codes in code and docs do not match' | |||
|
|||
|
|||
@pytest.mark.xfail(reason='`enum` is not documented') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pydantic-core
has introduced enum
error type in pydantic/pydantic-core#751
0fd3b42
to
4b46299
Compare
please review |
Change Summary
Update
pydantic-core
, rebuildpdm.lock
, fix tests.Related issue number
None
Checklist
Closes #6588
Selected Reviewer: @adriangb