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

Function test_to_datetimeindex_future_warning

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

Source from the content-addressed store, hash-verified

1248
1249@requires_cftime
1250def test_to_datetimeindex_future_warning() -> None:
1251 index = xr.date_range("2000", periods=5, use_cftime=True)
1252 expected = pd.date_range("2000", periods=5, unit="ns")
1253 with pytest.warns(FutureWarning, match="In a future version"):
1254 result = index.to_datetimeindex()
1255 assert result.equals(expected)
1256 assert result.dtype == expected.dtype
1257
1258
1259@requires_cftime

Callers

nothing calls this directly

Calls 2

to_datetimeindexMethod · 0.80
equalsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…