Skip to content

Commit 96cc2bc

Browse files
authored
fix test suite warnings re drop (#3460)
1 parent c0af5e7 commit 96cc2bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

xarray/tests/test_duck_array_ops.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,9 @@ def test_argmin_max(dim_num, dtype, contains_nan, dask, func, skipna, aggdim):
440440
**{aggdim: getattr(da, "arg" + func)(dim=aggdim, skipna=skipna).compute()}
441441
)
442442
expected = getattr(da, func)(dim=aggdim, skipna=skipna)
443-
assert_allclose(actual.drop(actual.coords), expected.drop(expected.coords))
443+
assert_allclose(
444+
actual.drop(list(actual.coords)), expected.drop(list(expected.coords))
445+
)
444446

445447

446448
def test_argmin_max_error():

0 commit comments

Comments
 (0)