MCPcopy Index your code
hub / github.com/pydata/xarray / test_cftimeindex_shift_invalid_periods

Function test_cftimeindex_shift_invalid_periods

xarray/tests/test_cftimeindex.py:1030–1033  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1028
1029@requires_cftime
1030def test_cftimeindex_shift_invalid_periods() -> None:
1031 index = xr.date_range("2000", periods=3, use_cftime=True)
1032 with pytest.raises(TypeError):
1033 index.shift("a", "D")
1034
1035
1036@requires_cftime

Callers

nothing calls this directly

Calls 1

shiftMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…