Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
test_root_validator_allow_reuse_same_field()
for all warnings
Fix `tests/test_validators.py::test_root_validator_allow_reuse_same_field` to assert for both warnings emitted, including the Pydantic V1 deprecation warning. Starting with pytest 8.0.0 (thanks to the fix for pytest-dev/pytest#9288), `pytest.warns()` re-emits warnings that weren't caught by the assertion, effectively causing the default run with `-Werror` to fail.
- Loading branch information