As discussed in https://github.com/pytest-dev/pytest/issues/9288#issuecomment-965102239, using `pytest.warns` will by design also capture `DeprecationWarning`s which would by default be captured by pytest. We should add a note about that in `pytest.warns` and the section about DeprecationWarnings handling.