()
| 156 | |
| 157 | |
| 158 | def test_out(): |
| 159 | xarray_obj = xr.DataArray([1, 2, 3]) |
| 160 | |
| 161 | # xarray out arguments should raise |
| 162 | with pytest.raises(NotImplementedError, match=r"`out` argument"): |
| 163 | np.add(xarray_obj, 1, out=xarray_obj) # type: ignore[call-overload] |
| 164 | |
| 165 | # but non-xarray should be OK |
| 166 | other = np.zeros((3,)) |
| 167 | np.add(other, xarray_obj, out=other) |
| 168 | assert_identical(other, np.array([1, 2, 3])) |
| 169 | |
| 170 | |
| 171 | def test_gufuncs(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…