From c184689f2025f538fb12511344e6c3954cda6e1a Mon Sep 17 00:00:00 2001 From: Stephan Hoyer Date: Tue, 20 Aug 2019 11:28:08 -0700 Subject: [PATCH] Fix xarray's test suite with the dask master We shouldn't be checking the details of dask's repr. --- xarray/tests/test_dask.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/xarray/tests/test_dask.py b/xarray/tests/test_dask.py index c082cc42879..e3fc6f65e0f 100644 --- a/xarray/tests/test_dask.py +++ b/xarray/tests/test_dask.py @@ -150,7 +150,9 @@ def test_repr(self): expected = dedent( """\ - dask.array""" + {!r}""".format( + self.lazy_var.data + ) ) assert expected == repr(self.lazy_var) @@ -499,10 +501,12 @@ def test_dataarray_repr_legacy(self): expected = dedent( """\ - dask.array + {!r} Coordinates: y (x) int64 dask.array - Dimensions without coordinates: x""" + Dimensions without coordinates: x""".format( + data + ) ) assert expected == repr(a) assert kernel_call_count == 0 # should not evaluate dask array @@ -515,10 +519,12 @@ def test_dataarray_repr(self): expected = dedent( """\ - dask.array + {!r} Coordinates: y (x) int64 dask.array - Dimensions without coordinates: x""" + Dimensions without coordinates: x""".format( + data + ) ) assert expected == repr(a) assert kernel_call_count == 0 # should not evaluate dask array