@@ -150,7 +150,9 @@ def test_repr(self):
150150 expected = dedent (
151151 """\
152152 <xarray.Variable (x: 4, y: 6)>
153- dask.array<array, shape=(4, 6), dtype=float64, chunksize=(2, 2)>"""
153+ {!r}""" .format (
154+ self .lazy_var .data
155+ )
154156 )
155157 assert expected == repr (self .lazy_var )
156158
@@ -499,10 +501,12 @@ def test_dataarray_repr_legacy(self):
499501 expected = dedent (
500502 """\
501503 <xarray.DataArray 'data' (x: 1)>
502- dask.array<data, shape=(1,), dtype=int64, chunksize=(1,)>
504+ {!r}
503505 Coordinates:
504506 y (x) int64 dask.array<chunksize=(1,)>
505- Dimensions without coordinates: x"""
507+ Dimensions without coordinates: x""" .format (
508+ data
509+ )
506510 )
507511 assert expected == repr (a )
508512 assert kernel_call_count == 0 # should not evaluate dask array
@@ -515,10 +519,12 @@ def test_dataarray_repr(self):
515519 expected = dedent (
516520 """\
517521 <xarray.DataArray 'data' (x: 1)>
518- dask.array<data, shape=(1,), dtype=int64, chunksize=(1,)>
522+ {!r}
519523 Coordinates:
520524 y (x) int64 dask.array<chunksize=(1,), meta=np.ndarray>
521- Dimensions without coordinates: x"""
525+ Dimensions without coordinates: x""" .format (
526+ data
527+ )
522528 )
523529 assert expected == repr (a )
524530 assert kernel_call_count == 0 # should not evaluate dask array
0 commit comments