forked from pool/python-xarray
- 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
16 lines
577 B
Diff
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)
|