1
0
forked from pool/python-xarray
python-xarray/fix_test_resample_loffset.patch

12 lines
562 B
Diff

--- xarray-0.18.1/xarray/tests/test_dataset.py 2021-05-19 15:51:40.453553119 +0200
+++ xarray-0.18.1/xarray/tests/test_dataset.py 2021-05-19 15:52:03.669706686 +0200
@@ -3988,7 +3988,7 @@
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)