Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
test_use_no_fields()
not to assert for non-emitted warning
Fix `tests/test_validators.py::test_use_no_fields` not to check for a warning that can't be emitted because calling the decorator fails with a `TypeError`. Starting with pytest 8.0.0 (due to pytest-dev/pytest#9036 fix), `pytest.warns()` assertions are enforced even if an exception is raised and consumed by `pytest.raises()`. Bug pydantic#8674
- Loading branch information