From 1e6cf966e77ff5a152d574a6343143bbd67ecfa0 Mon Sep 17 00:00:00 2001 From: Oliver Higgs Date: Wed, 4 Sep 2024 00:09:08 +1000 Subject: [PATCH] Fix test --- xarray/tests/test_groupby.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/xarray/tests/test_groupby.py b/xarray/tests/test_groupby.py index ec1723cfd3f..d7efd56560b 100644 --- a/xarray/tests/test_groupby.py +++ b/xarray/tests/test_groupby.py @@ -1829,12 +1829,13 @@ def test_resample_dtype(self, use_cftime: bool) -> None: ) ], ) - test_resample_freqs = [ - "10min", - pd.Timedelta(hours=2), - pd.offsets.MonthBegin(), - datetime.timedelta(days=1, hours=6), - ] + test_resample_freqs = ["10min"] + if not use_cftime: + test_resample_freqs += [ + pd.Timedelta(hours=2), + pd.offsets.MonthBegin(), + datetime.timedelta(days=1, hours=6), + ] for freq in test_resample_freqs: array.resample(time=freq)