Skip to content

Commit 36b8a63

Browse files
committed
Fix test
1 parent 6801b79 commit 36b8a63

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

xarray/tests/test_groupby.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1829,12 +1829,13 @@ def test_resample_dtype(self, use_cftime: bool) -> None:
18291829
)
18301830
],
18311831
)
1832-
test_resample_freqs = [
1833-
"10min",
1834-
pd.Timedelta(hours=2),
1835-
pd.offsets.MonthBegin(),
1836-
datetime.timedelta(days=1, hours=6),
1837-
]
1832+
test_resample_freqs = ["10min"]
1833+
if not use_cftime:
1834+
test_resample_freqs += [
1835+
pd.Timedelta(hours=2),
1836+
pd.offsets.MonthBegin(),
1837+
datetime.timedelta(days=1, hours=6),
1838+
]
18381839
for freq in test_resample_freqs:
18391840
array.resample(time=freq)
18401841

0 commit comments

Comments
 (0)