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

Function test_to_offset_deprecation_warning

xarray/tests/test_cftime_offsets.py:1570–1573  ·  view source on GitHub ↗
(freq)

Source from the content-addressed store, hash-verified

1568 "freq", ["A", "AS", "Q", "M", "H", "T", "S", "L", "U", "Y", "A-MAY"]
1569)
1570def test_to_offset_deprecation_warning(freq):
1571 # Test for deprecations outlined in GitHub issue #8394
1572 with pytest.warns(FutureWarning, match="is deprecated"):
1573 to_offset(freq)
1574
1575
1576@pytest.mark.skipif(has_pandas_ge_2_2, reason="only relevant for pandas lt 2.2")

Callers

nothing calls this directly

Calls 1

to_offsetFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…