(calendar)
| 1259 | @requires_cftime |
| 1260 | @pytest.mark.parametrize("calendar", _ALL_CALENDARS) |
| 1261 | def 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…