()
| 221 | |
| 222 | |
| 223 | def test_interpolate_duplicate_values_raises(): |
| 224 | data = np.random.randn(2, 3) |
| 225 | da = xr.DataArray(data, coords=[("x", ["a", "a"]), ("y", [0, 1, 2])]) |
| 226 | with pytest.raises(ValueError, match=r"Index 'x' has duplicate values"): |
| 227 | da.interpolate_na(dim="x", method="foo") # type: ignore[arg-type] |
| 228 | |
| 229 | |
| 230 | def test_interpolate_multiindex_raises(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…