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

Function test_to_datetimeindex_feb_29

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

Source from the content-addressed store, hash-verified

1281@requires_cftime
1282@pytest.mark.parametrize("calendar", ["all_leap", "360_day"])
1283def test_to_datetimeindex_feb_29(calendar) -> None:
1284 index = xr.date_range("2001-02-28", periods=2, calendar=calendar, use_cftime=True)
1285 with pytest.raises(ValueError, match="29"):
1286 index.to_datetimeindex(time_unit="ns")
1287
1288
1289@pytest.mark.xfail(reason="fails on pandas main branch")

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…