Skip to content

tests: import ValidationError directly from pydantic to avoid deprecation warning - #2075

Closed
aoright wants to merge 1 commit into
fastapi:mainfrom
aoright:fix/import-validation-error-from-pydantic
Closed

tests: import ValidationError directly from pydantic to avoid deprecation warning#2075
aoright wants to merge 1 commit into
fastapi:mainfrom
aoright:fix/import-validation-error-from-pydantic

Conversation

@aoright

@aoright aoright commented Aug 19, 2026

Copy link
Copy Markdown

Summary

  • In tests/test_validation.py, import ValidationError directly from pydantic instead of deprecated pydantic.error_wrappers, resolving PydanticDeprecatedSince20 warning.

…tion warning

Signed-off-by: aoright <102943475+aoright@users.noreply.github.com>
@YuriiMotov

Copy link
Copy Markdown
Member

Thanks, but we already have #1600 that covers this, it's been waiting for tiangolo's final review

@YuriiMotov YuriiMotov closed this Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants