diff --git a/xarray/tests/test_indexing.py b/xarray/tests/test_indexing.py index 78a63cb380c..92c21cc32fb 100644 --- a/xarray/tests/test_indexing.py +++ b/xarray/tests/test_indexing.py @@ -913,7 +913,10 @@ def __array_function__(self, func, types, args, kwargs): def as_dask_array(arr, chunks): - import dask.array as da + try: + import dask.array as da + except ImportError: + return None return da.from_array(arr, chunks=chunks)