Skip to content

Commit f9a535c

Browse files
authored
use assert_allcose on test_resample_loffset (#5364)
1 parent 55e5b5a commit f9a535c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray/tests/test_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4037,7 +4037,7 @@ def test_resample_loffset(self):
40374037
expected_ = ds.bar.to_series().resample("24H").mean()
40384038
expected_.index += to_offset("-12H")
40394039
expected = DataArray.from_series(expected_)
4040-
assert_identical(actual, expected)
4040+
assert_allclose(actual, expected)
40414041

40424042
def test_resample_by_mean_discarding_attrs(self):
40434043
times = pd.date_range("2000-01-01", freq="6H", periods=10)

0 commit comments

Comments
 (0)