Skip to content

Commit a57d4ae

Browse files
committed
Test one more warning
1 parent bf8139d commit a57d4ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

xarray/tests/test_groupby.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ def func(arg1, arg2, arg3=0):
199199

200200
array = xr.DataArray([1, 1, 1], [("x", [1, 2, 3])])
201201
expected = xr.DataArray([3, 3, 3], [("x", [1, 2, 3])])
202-
actual = array.groupby("x", squeeze=False).map(func, args=(1,), arg3=1)
202+
with pytest.warns(UserWarning, match="The `squeeze` kwarg"):
203+
actual = array.groupby("x").map(func, args=(1,), arg3=1)
203204
assert_identical(expected, actual)
204205

205206

0 commit comments

Comments
 (0)