diff --git a/xarray/tests/test_dataarray.py b/xarray/tests/test_dataarray.py index 0e828226558..c253d78c6ef 100644 --- a/xarray/tests/test_dataarray.py +++ b/xarray/tests/test_dataarray.py @@ -4537,7 +4537,7 @@ def test_idxmin(self, x, minindex, maxindex, nanindex, use_dask): if use_dask & (x.dtype.kind == "M"): pytest.xfail("dask operation 'argmin' breaks when dtype is datetime64 (M)") ar0_raw = xr.DataArray( - x, dims=["x"], coords={"x": np.arange(x.size) * 4}, attrs=self.attrs, + x, dims=["x"], coords={"x": np.arange(x.size) * 4}, attrs=self.attrs ) if use_dask: @@ -4643,7 +4643,7 @@ def test_idxmax(self, x, minindex, maxindex, nanindex, use_dask): if use_dask & (x.dtype.kind == "M"): pytest.xfail("dask operation 'argmax' breaks when dtype is datetime64 (M)") ar0_raw = xr.DataArray( - x, dims=["x"], coords={"x": np.arange(x.size) * 4}, attrs=self.attrs, + x, dims=["x"], coords={"x": np.arange(x.size) * 4}, attrs=self.attrs ) if use_dask: