From f95944fd1fa40809f575bbd981ae8a0516ee79a2 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Sun, 23 May 2021 10:54:34 +0200 Subject: [PATCH] use assert_allcose on test_resample_loffset test_resample_loffset failed on i586 with Python 3.9 as it used assert_identical. Changed to the more permissive assert_allclose. fixes #5341 --- xarray/tests/test_dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)