Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverhiggs committed Sep 3, 2024
1 parent f2df288 commit 1e6cf96
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions xarray/tests/test_groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check failure on line 1840 in xarray/tests/test_groupby.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.10 bare-minimum

TestDataArrayResample.test_resample_dtype[False] TypeError: expected string or bytes-like object

Check failure on line 1840 in xarray/tests/test_groupby.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.10 min-all-deps

TestDataArrayResample.test_resample_dtype[False] TypeError: expected string or bytes-like object

Expand Down

0 comments on commit 1e6cf96

Please sign in to comment.