Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not make use of pytest.warns(None)
pytest.warns(None) is an anti-pattern, and there are easier ways to accomplish both cases with how the code is leveraging pytest.warns(). Firstly, it can match on a specific warning and will assert that the warning is raised -- and it doesn't need to be used if we want to assert code raises no warnings, the standard library can do that directly. Furthermore, pytest.warns(None) is an error in Pytest 8 and above.
- Loading branch information