Skip to content

Commit

Permalink
adapt more freq strings
Browse files Browse the repository at this point in the history
  • Loading branch information
mathause committed Feb 1, 2024
1 parent c427227 commit c127115
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xarray/tests/test_cftime_offsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit c127115

Please sign in to comment.