From c1271156f13a4dca1c85ac4e607f3563f3854729 Mon Sep 17 00:00:00 2001 From: Mathias Hauser Date: Thu, 1 Feb 2024 10:19:21 +0100 Subject: [PATCH] adapt more freq strings --- xarray/tests/test_cftime_offsets.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xarray/tests/test_cftime_offsets.py b/xarray/tests/test_cftime_offsets.py index 352158c7c48..7b035e0ea03 100644 --- a/xarray/tests/test_cftime_offsets.py +++ b/xarray/tests/test_cftime_offsets.py @@ -1688,7 +1688,9 @@ def test_new_to_legacy_freq_anchored(year_alias, n): @pytest.mark.filterwarnings("ignore:Converting a CFTimeIndex with:") @pytest.mark.parametrize("start", ("2000", "2001")) @pytest.mark.parametrize("end", ("2000", "2001")) -@pytest.mark.parametrize("freq", ("MS", "-1MS", "YS", "-1YS", "M", "-1M", "Y", "-1Y")) +@pytest.mark.parametrize( + "freq", ("MS", "-1MS", "YS", "-1YS", "ME", "-1ME", "YE", "-1YE") +) def test_cftime_range_same_as_pandas(start, end, freq): result = date_range(start, end, freq=freq, calendar="standard", use_cftime=True) result = result.to_datetimeindex()