1
0
forked from pool/python-xarray
python-xarray/test_resample_loffset.patch
Sebastian Wagner 15f5c83eeb Accepting request 895529 from home:mcepl:branches:devel:languages:python:numeric
- Add local_dataset.patch allowing the use of the cached datasets
  (gh#pydata/xarray#5377).
- Add scipy-interpolate.patch adding a missing import
  scipy.interpolate to test_interp.py (gh#pydata/xarray#5375).
- Add test_resample_loffset.patch to fix test_resample_loffset
  test (gh#pydata/xarray#5364).

OBS-URL: https://build.opensuse.org/request/show/895529
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=53
2021-05-27 06:19:25 +00:00

16 lines
577 B
Diff

---
xarray/tests/test_dataset.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/xarray/tests/test_dataset.py
+++ b/xarray/tests/test_dataset.py
@@ -3988,7 +3988,7 @@ class TestDataset:
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)