Skip to content

Commit 8dc4099

Browse files
update test
1 parent c4a1ff6 commit 8dc4099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/groupby/test_groupby.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ def test_raises_on_nuisance(df):
10051005
depr_msg = "DataFrame.groupby with axis=1 is deprecated"
10061006
with tm.assert_produces_warning(FutureWarning, match=depr_msg):
10071007
grouped = df.groupby({"A": 0, "C": 0, "D": 1, "E": 1}, axis=1)
1008-
msg = "does not support reduction 'sum'"
1008+
msg = "does not support reduction 'sum'|Cannot perform reduction 'sum'"
10091009
with pytest.raises(TypeError, match=msg):
10101010
grouped.agg(lambda x: x.sum(0, numeric_only=False))
10111011

0 commit comments

Comments
 (0)