Skip to content

Commit 56825f3

Browse files
committed
Don't use pytest.warns
1 parent 5c7f8f1 commit 56825f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/groupby/test_grouping.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ def test_default_observed_deprecated(self):
703703
):
704704
df.groupby(["x", "y"])
705705

706-
with pytest.warns(None) as any_warnings:
706+
with tm.assert_produces_warning(None) as any_warnings:
707707
df.groupby(["x", "y"], observed=True)
708708
df.groupby(["x", "y"], observed=False)
709709
assert len(any_warnings) == 0

0 commit comments

Comments
 (0)