Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test_groupby: Clear recorded warnings for pytest-8 compatibility
Clear the warnings recorded during the `pytest.warns()` use in `test_groupby_dims_property`, to fix test failures with pytest-8.0.0. Prior to this version, `pytest.warns()` invocation used to capture all warnings. Now it only captures the warnings that match the arguments, and the remaining warnings are re-emitted and therefore caught by `recwarn` fixture. To provide compatibility with both versions of pytest, clear the recorded warnings immediately after `pytest.warns()`. Fixes pydata#8681
- Loading branch information