We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20a36b4 commit 32f7e6dCopy full SHA for 32f7e6d
pandas/tests/groupby/test_grouping.py
@@ -703,7 +703,7 @@ def test_default_observed_deprecated(self):
703
):
704
df.groupby(["x", "y"])
705
706
- with pytest.warns(None) as any_warnings:
+ with tm.assert_produces_warning(None) as any_warnings:
707
df.groupby(["x", "y"], observed=True)
708
df.groupby(["x", "y"], observed=False)
709
assert len(any_warnings) == 0
0 commit comments