MCPcopy
hub / github.com/pydata/xarray / test_to_datetimeindex_out_of_range

Function test_to_datetimeindex_out_of_range

xarray/tests/test_cftimeindex.py:1261–1264  ·  view source on GitHub ↗
(calendar)

Source from the content-addressed store, hash-verified

1259@requires_cftime
1260@pytest.mark.parametrize("calendar", _ALL_CALENDARS)
1261def test_to_datetimeindex_out_of_range(calendar) -> None:
1262 index = xr.date_range("0001", periods=5, calendar=calendar, use_cftime=True)
1263 with pytest.raises(ValueError, match="0001"):
1264 index.to_datetimeindex(time_unit="ns")
1265
1266
1267@requires_cftime

Callers

nothing calls this directly

Calls 1

to_datetimeindexMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…