diff --git a/xarray/tests/test_dataset.py b/xarray/tests/test_dataset.py index 8d4f5d041b0..4ae70d4467f 100644 --- a/xarray/tests/test_dataset.py +++ b/xarray/tests/test_dataset.py @@ -3987,7 +3987,7 @@ def test_resample_loffset(self): expected_ = ds.bar.to_series().resample("24H").mean() expected_.index += to_offset("-12H") expected = DataArray.from_series(expected_) - assert_identical(actual, expected) + assert_allclose(actual, expected) def test_resample_by_mean_discarding_attrs(self): times = pd.date_range("2000-01-01", freq="6H", periods=10)