diff --git a/dask/array/core.py b/dask/array/core.py
--- a/dask/array/core.py
+++ b/dask/array/core.py
@@ -4374,7 +4374,7 @@ def load_store_chunk(
     if lock:
         lock.acquire()
     try:
-        if x is not None:
+        if x is not None and x.size != 0:
             if is_arraylike(x):
                 out[index] = x
             else:

Hi, thanks for your report. Not familiar enough with hat implementation, but it looks like things go wrong in ``load_store_chunk``. We probably shouldn't call setitem if the indexer is empty or the array is empty.

Investigations welcome
diff --git a/dask/array/tests/test_array_core.py b/dask/array/tests/test_array_core.py
--- a/dask/array/tests/test_array_core.py
+++ b/dask/array/tests/test_array_core.py
@@ -45,6 +45,7 @@
     from_func,
     getter,
     graph_from_arraylike,
+    load_store_chunk,
     normalize_chunks,
     optimize,
     stack,
@@ -4579,6 +4580,13 @@ def test_zarr_roundtrip_with_path_like():
         assert a2.chunks == a.chunks
 
 
+def test_to_zarr_accepts_empty_array_without_exception_raised():
+    pytest.importorskip("zarr")
+    with tmpdir() as d:
+        a = da.from_array(np.arange(0))
+        a.to_zarr(d)
+
+
 @pytest.mark.parametrize("compute", [False, True])
 def test_zarr_return_stored(compute):
     pytest.importorskip("zarr")
@@ -5346,3 +5354,28 @@ def test_to_backend():
         # Moving to a "missing" backend should raise an error
         with pytest.raises(ValueError, match="No backend dispatch registered"):
             x.to_backend("missing")
+
+
+def test_load_store_chunk():
+    actual = np.array([0, 0, 0, 0, 0, 0])
+    load_store_chunk(
+        x=np.array([1, 2, 3]),
+        out=actual,
+        index=slice(2, 5),
+        lock=False,
+        return_stored=False,
+        load_stored=False,
+    )
+    expected = np.array([0, 0, 1, 2, 3, 0])
+    assert all(actual == expected)
+    # index should not be used on empty array
+    actual = load_store_chunk(
+        x=np.array([]),
+        out=np.array([]),
+        index=2,
+        lock=False,
+        return_stored=True,
+        load_stored=False,
+    )
+    expected = np.array([])
+    assert all(actual == expected)

Writing zero length array to_zarr fails with ZeroDivisionError: division by zero
**Describe the issue**:

Writing an empty Dask array to zarr causes division by zero.

**Minimal Complete Verifiable Example**:

See also: https://colab.research.google.com/drive/1VUOlJOkQyZ42zKTz3S3q0pKeiaLs0zIA?usp=sharing

```python
import dask.array
import numpy as np
dask.array.from_array(np.arange(0)).to_zarr("z0.zarr")
```

Yields:
```
[/usr/local/lib/python3.10/dist-packages/dask/array/core.py](https://localhost:8080/#) in to_zarr(self, *args, **kwargs)
   2924         dask.array.to_zarr : equivalent function
   2925         """
-> 2926         return to_zarr(self, *args, **kwargs)
   2927 
   2928     def to_tiledb(self, uri, *args, **kwargs):

[/usr/local/lib/python3.10/dist-packages/dask/array/core.py](https://localhost:8080/#) in to_zarr(arr, url, component, storage_options, overwrite, region, compute, return_stored, **kwargs)
   3692         **kwargs,
   3693     )
-> 3694     return arr.store(z, lock=False, compute=compute, return_stored=return_stored)
   3695 
   3696 

[/usr/local/lib/python3.10/dist-packages/dask/array/core.py](https://localhost:8080/#) in store(self, target, **kwargs)
   1766     @wraps(store)
   1767     def store(self, target, **kwargs):
-> 1768         r = store([self], [target], **kwargs)
   1769 
   1770         if kwargs.get("return_stored", False):

[/usr/local/lib/python3.10/dist-packages/dask/array/core.py](https://localhost:8080/#) in store(***failed resolving arguments***)
   1234     elif compute:
   1235         store_dsk = HighLevelGraph(layers, dependencies)
-> 1236         compute_as_if_collection(Array, store_dsk, map_keys, **kwargs)
   1237         return None
   1238 

[/usr/local/lib/python3.10/dist-packages/dask/base.py](https://localhost:8080/#) in compute_as_if_collection(cls, dsk, keys, scheduler, get, **kwargs)
    340     schedule = get_scheduler(scheduler=scheduler, cls=cls, get=get)
    341     dsk2 = optimization_function(cls)(dsk, keys, **kwargs)
--> 342     return schedule(dsk2, keys, **kwargs)
    343 
    344 

[/usr/local/lib/python3.10/dist-packages/dask/threaded.py](https://localhost:8080/#) in get(dsk, keys, cache, num_workers, pool, **kwargs)
     87             pool = MultiprocessingPoolExecutor(pool)
     88 
---> 89     results = get_async(
     90         pool.submit,
     91         pool._max_workers,

[/usr/local/lib/python3.10/dist-packages/dask/local.py](https://localhost:8080/#) in get_async(submit, num_workers, dsk, result, cache, get_id, rerun_exceptions_locally, pack_exception, raise_exception, callbacks, dumps, loads, chunksize, **kwargs)
    509                             _execute_task(task, data)  # Re-execute locally
    510                         else:
--> 511                             raise_exception(exc, tb)
    512                     res, worker_id = loads(res_info)
    513                     state["cache"][key] = res

[/usr/local/lib/python3.10/dist-packages/dask/local.py](https://localhost:8080/#) in reraise(exc, tb)
    317     if exc.__traceback__ is not tb:
    318         raise exc.with_traceback(tb)
--> 319     raise exc
    320 
    321 

[/usr/local/lib/python3.10/dist-packages/dask/local.py](https://localhost:8080/#) in execute_task(key, task_info, dumps, loads, get_id, pack_exception)
    222     try:
    223         task, data = loads(task_info)
--> 224         result = _execute_task(task, data)
    225         id = get_id()
    226         result = dumps((result, id))

[/usr/local/lib/python3.10/dist-packages/dask/core.py](https://localhost:8080/#) in _execute_task(arg, cache, dsk)
    117         # temporaries by their reference count and can execute certain
    118         # operations in-place.
--> 119         return func(*(_execute_task(a, cache) for a in args))
    120     elif not ishashable(arg):
    121         return arg

[/usr/local/lib/python3.10/dist-packages/dask/array/core.py](https://localhost:8080/#) in store_chunk(x, out, index, lock, return_stored)
   4364     x: ArrayLike, out: ArrayLike, index: slice, lock: Any, return_stored: bool
   4365 ):
-> 4366     return load_store_chunk(x, out, index, lock, return_stored, False)
   4367 
   4368 

[/usr/local/lib/python3.10/dist-packages/dask/array/core.py](https://localhost:8080/#) in load_store_chunk(x, out, index, lock, return_stored, load_stored)
   4346         if x is not None:
   4347             if is_arraylike(x):
-> 4348                 out[index] = x
   4349             else:
   4350                 out[index] = np.asanyarray(x)

[/usr/local/lib/python3.10/dist-packages/zarr/core.py](https://localhost:8080/#) in __setitem__(self, selection, value)
   1495             self.set_orthogonal_selection(pure_selection, value, fields=fields)
   1496         else:
-> 1497             self.set_basic_selection(pure_selection, value, fields=fields)
   1498 
   1499     def set_basic_selection(self, selection, value, fields=None):

[/usr/local/lib/python3.10/dist-packages/zarr/core.py](https://localhost:8080/#) in set_basic_selection(self, selection, value, fields)
   1591             return self._set_basic_selection_zd(selection, value, fields=fields)
   1592         else:
-> 1593             return self._set_basic_selection_nd(selection, value, fields=fields)
   1594 
   1595     def set_orthogonal_selection(self, selection, value, fields=None):

[/usr/local/lib/python3.10/dist-packages/zarr/core.py](https://localhost:8080/#) in _set_basic_selection_nd(self, selection, value, fields)
   1979 
   1980         # setup indexer
-> 1981         indexer = BasicIndexer(selection, self)
   1982 
   1983         self._set_selection(indexer, value, fields=fields)

[/usr/local/lib/python3.10/dist-packages/zarr/indexing.py](https://localhost:8080/#) in __init__(self, selection, array)
    343 
    344             elif is_slice(dim_sel):
--> 345                 dim_indexer = SliceDimIndexer(dim_sel, dim_len, dim_chunk_len)
    346 
    347             else:

[/usr/local/lib/python3.10/dist-packages/zarr/indexing.py](https://localhost:8080/#) in __init__(self, dim_sel, dim_len, dim_chunk_len)
    180         self.dim_chunk_len = dim_chunk_len
    181         self.nitems = max(0, ceildiv((self.stop - self.start), self.step))
--> 182         self.nchunks = ceildiv(self.dim_len, self.dim_chunk_len)
    183 
    184     def __iter__(self):

[/usr/local/lib/python3.10/dist-packages/zarr/indexing.py](https://localhost:8080/#) in ceildiv(a, b)
    165 
    166 def ceildiv(a, b):
--> 167     return math.ceil(a / b)
    168 
    169 

ZeroDivisionError: division by zero
```

**Anything else we need to know?**:

Maybe related: https://github.com/pydata/xarray/issues/5741

This works fine:
```python
import zarr
import numpy as np
zarr.save('z.zarr', np.arange(0))
```

**Environment**:

- Dask version: 2022.12.1, 2023.4.1
- Python version: Python 3.9.16, Python 3.10.12
- Operating System: Linux 5.15.109, Linux 5.4.0-110-generic 
- Install method (conda, pip, source): conda


dask/array/tests/test_array_core.py::test_load_store_chunk dask/array/tests/test_array_core.py::test_to_zarr_accepts_empty_array_without_exception_raised
dask/array/tests/test_array_core.py::test_normalize_chunks_nan dask/array/tests/test_array_core.py::test_stack_scalars dask/array/tests/test_array_core.py::test_to_dask_dataframe dask/array/tests/test_array_core.py::test_astype dask/array/tests/test_array_core.py::test_meta[dtype1] dask/array/tests/test_array_core.py::test_vindex_basic dask/array/tests/test_array_core.py::test_from_array_with_missing_chunks dask/array/tests/test_array_core.py::test_setitem_extended_API_2d[index11-value11] dask/array/tests/test_array_core.py::test_reshape[original_shape15-new_shape15-2] dask/array/tests/test_array_core.py::test_from_array_scalar[int32] dask/array/tests/test_array_core.py::test_setitem_extended_API_2d[index18-value18] dask/array/tests/test_array_core.py::test_elemwise_uneven_chunks dask/array/tests/test_array_core.py::test_setitem_hardmask dask/array/tests/test_array_core.py::test_broadcast_operator[u_shape3-v_shape3] dask/array/tests/test_array_core.py::test_to_hdf5 dask/array/tests/test_array_core.py::test_matmul dask/array/tests/test_array_core.py::test_map_blocks_block_info_with_new_axis dask/array/tests/test_array_core.py::test_concatenate_unknown_axes dask/array/tests/test_array_core.py::test_to_delayed_optimize_graph dask/array/tests/test_array_core.py::test_concatenate_axes dask/array/tests/test_array_core.py::test_broadcast_to_scalar dask/array/tests/test_array_core.py::test_reshape[original_shape31-new_shape31-chunks31] dask/array/tests/test_array_core.py::test_Array_computation dask/array/tests/test_array_core.py::test_store_deterministic_keys[True-False] dask/array/tests/test_array_core.py::test_chunk_shape_broadcast[1] dask/array/tests/test_array_core.py::test_compute_chunk_sizes_warning_fixes_to_zarr dask/array/tests/test_array_core.py::test_normalize_chunks_tuples_of_tuples dask/array/tests/test_array_core.py::test_broadcast_operator[u_shape4-v_shape4] dask/array/tests/test_array_core.py::test_no_chunks_yes_chunks dask/array/tests/test_array_core.py::test_map_blocks_block_info dask/array/tests/test_array_core.py::test_asanyarray dask/array/tests/test_array_core.py::test_broadcast_to_chunks dask/array/tests/test_array_core.py::test_block_simple_column_wise dask/array/tests/test_array_core.py::test_vindex_negative dask/array/tests/test_array_core.py::test_blockwise_zero_shape_new_axes dask/array/tests/test_array_core.py::test_normalize_chunks_auto_2d[shape2-auto-10-expected2] dask/array/tests/test_array_core.py::test_slice_reversed dask/array/tests/test_array_core.py::test_keys dask/array/tests/test_array_core.py::test_store_compute_false dask/array/tests/test_array_core.py::test_reshape_avoids_large_chunks[shape0-chunks0-reshape_size0-None] dask/array/tests/test_array_core.py::test_reshape[original_shape9-new_shape9-2] dask/array/tests/test_array_core.py::test_map_blocks_with_changed_dimension dask/array/tests/test_array_core.py::test_setitem_extended_API_2d[3-value7] dask/array/tests/test_array_core.py::test_broadcast_against_zero_shape dask/array/tests/test_array_core.py::test_reshape[original_shape28-new_shape28-chunks28] dask/array/tests/test_array_core.py::test_repr_html_array_highlevelgraph dask/array/tests/test_array_core.py::test_repr_meta dask/array/tests/test_array_core.py::test_chunk_shape_broadcast[3] dask/array/tests/test_array_core.py::test_slicing_with_ellipsis dask/array/tests/test_array_core.py::test_elemwise_with_lists[other0-100] dask/array/tests/test_array_core.py::test_block_with_1d_arrays_column_wise dask/array/tests/test_array_core.py::test_from_array_scalar[uint64] dask/array/tests/test_array_core.py::test_setitem_extended_API_2d[index16--1] dask/array/tests/test_array_core.py::test_block_no_lists dask/array/tests/test_array_core.py::test_delayed_array_key_hygeine dask/array/tests/test_array_core.py::test_len_object_with_unknown_size dask/array/tests/test_array_core.py::test_setitem_extended_API_2d[index2--1] dask/array/tests/test_array_core.py::test_from_array_scalar[int64] dask/array/tests/test_array_core.py::test_chunked_dot_product dask/array/tests/test_array_core.py::test_setitem_extended_API_2d[index9-value9] dask/array/tests/test_array_core.py::test_reshape[original_shape24-new_shape24-6] dask/array/tests/test_array_core.py::test_from_array_scalar[datetime64] dask/array/tests/test_array_core.py::test_bool dask/array/tests/test_array_core.py::test_from_array_no_asarray[True-False-matrix] dask/array/tests/test_array_core.py::test_normalize_chunks_auto_2d[shape0-chunks0-20-expected0] dask/array/tests/test_array_core.py::test_reshape[original_shape3-new_shape3-12] dask/array/tests/test_array_core.py::test_reshape[original_shape17-new_shape17-3] dask/array/tests/test_array_core.py::test_normalize_chunks dask/array/tests/test_array_core.py::test_elemwise_dtype dask/array/tests/test_array_core.py::test_from_array_minus_one dask/array/tests/test_array_core.py::test_map_blocks_with_invalid_drop_axis dask/array/tests/test_array_core.py::test_setitem_extended_API_2d[index20-value20] dask/array/tests/test_array_core.py::test_3925 dask/array/tests/test_array_core.py::test_memmap dask/array/tests/test_array_core.py::test_slicing_with_object_dtype dask/array/tests/test_array_core.py::test_from_array_scalar[timedelta64] dask/array/tests/test_array_core.py::test_vindex_identity dask/array/tests/test_array_core.py::test_broadcast_operator[u_shape5-v_shape5] dask/array/tests/test_array_core.py::test_graph_from_arraylike[True] dask/array/tests/test_array_core.py::test_from_array_scalar[int] dask/array/tests/test_array_core.py::test_long_slice dask/array/tests/test_array_core.py::test_reshape[original_shape13-new_shape13-2] dask/array/tests/test_array_core.py::test_field_access_with_shape dask/array/tests/test_array_core.py::test_vindex_errors dask/array/tests/test_array_core.py::test_from_array_scalar[int8] dask/array/tests/test_array_core.py::test_map_blocks_with_negative_drop_axis dask/array/tests/test_array_core.py::test_block_empty_lists dask/array/tests/test_array_core.py::test_broadcast_operator[u_shape1-v_shape1] dask/array/tests/test_array_core.py::test_store_delayed_target dask/array/tests/test_array_core.py::test_align_chunks_to_previous_chunks dask/array/tests/test_array_core.py::test_from_array_scalar[object_] dask/array/tests/test_array_core.py::test_regular_chunks[data6] dask/array/tests/test_array_core.py::test_from_array_scalar[int16] dask/array/tests/test_array_core.py::test_h5py_newaxis dask/array/tests/test_array_core.py::test_arithmetic dask/array/tests/test_array_core.py::test_setitem_extended_API_2d[index3--1] dask/array/tests/test_array_core.py::test_from_array_ndarray_getitem dask/array/tests/test_array_core.py::test_from_array_with_lock[True] dask/array/tests/test_array_core.py::test_reshape[original_shape4-new_shape4-12] dask/array/tests/test_array_core.py::test_asarray_h5py[False-asarray] dask/array/tests/test_array_core.py::test_block_tuple dask/array/tests/test_array_core.py::test_no_warnings_from_blockwise dask/array/tests/test_array_core.py::test_setitem_extended_API_2d[index10-value10] dask/array/tests/test_array_core.py::test_from_array_scalar[complex256] dask/array/tests/test_array_core.py::test_getter dask/array/tests/test_array_core.py::test_compute_chunk_sizes dask/array/tests/test_array_core.py::test_reshape[original_shape33-new_shape33-chunks33] dask/array/tests/test_array_core.py::test_elemwise_with_ndarrays dask/array/tests/test_array_core.py::test_elemwise_differently_chunked dask/array/tests/test_array_core.py::test_setitem_extended_API_2d_rhs_func_of_lhs dask/array/tests/test_array_core.py::test_slice_with_integer_types dask/array/tests/test_array_core.py::test_copy_mutate dask/array/tests/test_array_core.py::test_auto_chunks_h5py dask/array/tests/test_array_core.py::test_store_regions dask/array/tests/test_array_core.py::test_chunk_assignment_invalidates_cached_properties dask/array/tests/test_array_core.py::test_constructors_chunks_dict dask/array/tests/test_array_core.py::test_zarr_inline_array[True] dask/array/tests/test_array_core.py::test_setitem_extended_API_0d dask/array/tests/test_array_core.py::test_stack_promote_type dask/array/tests/test_array_core.py::test_from_array_dask_array dask/array/tests/test_array_core.py::test_h5py_tokenize dask/array/tests/test_array_core.py::test_block_mixed_1d_and_2d dask/array/tests/test_array_core.py::test_setitem_extended_API_1d[index2--3] dask/array/tests/test_array_core.py::test_elemwise_on_scalars dask/array/tests/test_array_core.py::test_chunked_transpose_plus_one dask/array/tests/test_array_core.py::test_to_backend dask/array/tests/test_array_core.py::test_reshape[original_shape32-new_shape32-chunks32] dask/array/tests/test_array_core.py::test_setitem_extended_API_1d[index4--4] dask/array/tests/test_array_core.py::test_store_kwargs dask/array/tests/test_array_core.py::test_zarr_regions dask/array/tests/test_array_core.py::test_from_array_tasks_always_call_getter[False-x2-1] dask/array/tests/test_array_core.py::test_elemwise_with_lists[other2-6] dask/array/tests/test_array_core.py::test_np_array_with_zero_dimensions dask/array/tests/test_array_core.py::test_concatenate3_2 dask/array/tests/test_array_core.py::test_concatenate3_nep18_dispatching[False] dask/array/tests/test_array_core.py::test_from_array_getitem[False-False] dask/array/tests/test_array_core.py::test_regular_chunks[data5] dask/array/tests/test_array_core.py::test_numblocks_suppoorts_singleton_block_dims dask/array/tests/test_array_core.py::test_reshape_splat dask/array/tests/test_array_core.py::test_map_blocks_unique_name_drop_axis dask/array/tests/test_array_core.py::test_from_array_scalar[uint16] dask/array/tests/test_array_core.py::test_from_array_scalar[uint32] dask/array/tests/test_array_core.py::test_broadcast_dimensions dask/array/tests/test_array_core.py::test_setitem_extended_API_1d[index1--2] dask/array/tests/test_array_core.py::test_reshape[original_shape0-new_shape0-chunks0] dask/array/tests/test_array_core.py::test_elemwise_name dask/array/tests/test_array_core.py::test_setitem_extended_API_2d[index14--1] dask/array/tests/test_array_core.py::test_setitem_extended_API_2d[index8-value8] dask/array/tests/test_array_core.py::test_from_array_list[x0] dask/array/tests/test_array_core.py::test_store_deterministic_keys[False-True] dask/array/tests/test_array_core.py::test_from_array_meta dask/array/tests/test_array_core.py::test_from_array_ndarray_onechunk[x0] dask/array/tests/test_array_core.py::test_block_nested dask/array/tests/test_array_core.py::test_reshape[original_shape8-new_shape8-4] dask/array/tests/test_array_core.py::test_blockwise_zero_shape dask/array/tests/test_array_core.py::test_broadcast_arrays dask/array/tests/test_array_core.py::test_reshape[original_shape25-new_shape25-6] dask/array/tests/test_array_core.py::test_Array_numpy_gufunc_call__array_ufunc__02 dask/array/tests/test_array_core.py::test_from_zarr_name dask/array/tests/test_array_core.py::test_reshape[original_shape14-new_shape14-2] dask/array/tests/test_array_core.py::test_blockwise_1_in_shape_III dask/array/tests/test_array_core.py::test_reshape[original_shape5-new_shape5-chunks5] dask/array/tests/test_array_core.py::test_map_blocks_token_deprecated dask/array/tests/test_array_core.py::test_map_blocks_optimize_blockwise[<lambda>0] dask/array/tests/test_array_core.py::test_index_with_integer_types dask/array/tests/test_array_core.py::test_map_blocks_series dask/array/tests/test_array_core.py::test_map_blocks_infer_chunks_broadcast dask/array/tests/test_array_core.py::test_no_chunks dask/array/tests/test_array_core.py::test_from_array_no_asarray[False-False-matrix] dask/array/tests/test_array_core.py::test_from_array_scalar[uint8] dask/array/tests/test_array_core.py::test_from_array_getitem[True-True] dask/array/tests/test_array_core.py::test_map_blocks_optimize_blockwise[<lambda>1] dask/array/tests/test_array_core.py::test_scipy_sparse_concatenate[1] dask/array/tests/test_array_core.py::test_optimize dask/array/tests/test_array_core.py::test_elemwise_with_lists[other1-6] dask/array/tests/test_array_core.py::test_setitem_extended_API_1d[index3-value3] dask/array/tests/test_array_core.py::test_Array dask/array/tests/test_array_core.py::test_repr dask/array/tests/test_array_core.py::test_setitem_extended_API_2d[index1--1] dask/array/tests/test_array_core.py::test_graph_from_arraylike[False] dask/array/tests/test_array_core.py::test_reshape_unknown_dimensions dask/array/tests/test_array_core.py::test_concatenate_types[dtypes0] dask/array/tests/test_array_core.py::test_concatenate_rechunk dask/array/tests/test_array_core.py::test_from_array_scalar[float] dask/array/tests/test_array_core.py::test_concatenate_zero_size dask/array/tests/test_array_core.py::test_no_chunks_2d dask/array/tests/test_array_core.py::test_asanyarray_dataframe dask/array/tests/test_array_core.py::test_reshape_warns_by_default_if_it_is_producing_large_chunks dask/array/tests/test_array_core.py::test_zarr_pass_mapper dask/array/tests/test_array_core.py::test_dont_dealias_outputs dask/array/tests/test_array_core.py::test_asarray_dask_dataframe[asarray] dask/array/tests/test_array_core.py::test_view_fortran dask/array/tests/test_array_core.py::test_stack dask/array/tests/test_array_core.py::test_top dask/array/tests/test_array_core.py::test_normalize_chunks_auto_1d[24-5-expected3] dask/array/tests/test_array_core.py::test_point_slicing dask/array/tests/test_array_core.py::test_setitem_2d dask/array/tests/test_array_core.py::test_store_method_return dask/array/tests/test_array_core.py::test_setitem_extended_API_2d[index19--99] dask/array/tests/test_array_core.py::test_pandas_from_dask_array dask/array/tests/test_array_core.py::test_broadcast_arrays_uneven_chunks dask/array/tests/test_array_core.py::test_from_array_name dask/array/tests/test_array_core.py::test_blockwise_1_in_shape_I dask/array/tests/test_array_core.py::test_store_nocompute_regions dask/array/tests/test_array_core.py::test_chunk_shape_broadcast[8] dask/array/tests/test_array_core.py::test_asarray_dask_dataframe[asanyarray] dask/array/tests/test_array_core.py::test_array_picklable[array1] dask/array/tests/test_array_core.py::test_timedelta_op dask/array/tests/test_array_core.py::test_compute_chunk_sizes_2d_array dask/array/tests/test_array_core.py::test_setitem_extended_API_1d[index8--4] dask/array/tests/test_array_core.py::test_block_with_1d_arrays_row_wise dask/array/tests/test_array_core.py::test_from_array_scalar[complex128] dask/array/tests/test_array_core.py::test_vindex_merge dask/array/tests/test_array_core.py::test_from_array_dask_collection_warns dask/array/tests/test_array_core.py::test_setitem_extended_API_2d[index6-value6] dask/array/tests/test_array_core.py::test_block_with_1d_arrays_multiple_rows dask/array/tests/test_array_core.py::test_store_deterministic_keys[False-False] dask/array/tests/test_array_core.py::test_broadcast_shapes dask/array/tests/test_array_core.py::test_from_array_tasks_always_call_getter[True-x2-1] dask/array/tests/test_array_core.py::test_warn_bad_rechunking dask/array/tests/test_array_core.py::test_map_blocks dask/array/tests/test_array_core.py::test_store_deterministic_keys[True-True] dask/array/tests/test_array_core.py::test_from_array_ndarray_onechunk[x5] dask/array/tests/test_array_core.py::test_elemwise_with_lists[other0-6] dask/array/tests/test_array_core.py::test_zarr_group dask/array/tests/test_array_core.py::test_block_complicated dask/array/tests/test_array_core.py::test_concatenate_stack_dont_warn dask/array/tests/test_array_core.py::test_block_simple_row_wise dask/array/tests/test_array_core.py::test_from_array_scalar[complex] dask/array/tests/test_array_core.py::test_common_blockdim dask/array/tests/test_array_core.py::test_raise_informative_errors_no_chunks dask/array/tests/test_array_core.py::test_map_blocks_no_array_args dask/array/tests/test_array_core.py::test_from_array_tasks_always_call_getter[False-x3-1] dask/array/tests/test_array_core.py::test_store dask/array/tests/test_array_core.py::test_reshape[original_shape29-new_shape29-chunks29] dask/array/tests/test_array_core.py::test_raise_on_bad_kwargs dask/array/tests/test_array_core.py::test_zarr_nocompute dask/array/tests/test_array_core.py::test_reshape[original_shape12-new_shape12-2] dask/array/tests/test_array_core.py::test_reshape[original_shape30-new_shape30-chunks30] dask/array/tests/test_array_core.py::test_array_copy_noop[-1] dask/array/tests/test_array_core.py::test_map_blocks_with_changed_dimension_and_broadcast_chunks dask/array/tests/test_array_core.py::test_no_chunks_slicing_2d dask/array/tests/test_array_core.py::test_setitem_extended_API_2d[index4--1] dask/array/tests/test_array_core.py::test_block_with_mismatched_shape dask/array/tests/test_array_core.py::test_from_array_scalar[bytes] dask/array/tests/test_array_core.py::test_dtype dask/array/tests/test_array_core.py::test_to_zarr_unknown_chunks_raises dask/array/tests/test_array_core.py::test_map_blocks_with_constants dask/array/tests/test_array_core.py::test_uneven_chunks_that_fit_neatly dask/array/tests/test_array_core.py::test_asarray_chunks dask/array/tests/test_array_core.py::test_from_array_chunks_dict dask/array/tests/test_array_core.py::test_scipy_sparse_concatenate[0] dask/array/tests/test_array_core.py::test_from_array_scalar[str] dask/array/tests/test_array_core.py::test_map_blocks_block_info_with_drop_axis dask/array/tests/test_array_core.py::test_setitem_1d dask/array/tests/test_array_core.py::test_blockdims_from_blockshape dask/array/tests/test_array_core.py::test_T dask/array/tests/test_array_core.py::test_zarr_existing_array dask/array/tests/test_array_core.py::test_normalize_chunks_object_dtype[object] dask/array/tests/test_array_core.py::test_chunk_shape_broadcast[0] dask/array/tests/test_array_core.py::test_zero_sized_array_rechunk dask/array/tests/test_array_core.py::test_reshape[original_shape27-new_shape27-chunks27] dask/array/tests/test_array_core.py::test_reshape[original_shape11-new_shape11-2] dask/array/tests/test_array_core.py::test_reshape[original_shape6-new_shape6-4] dask/array/tests/test_array_core.py::test_elemwise_consistent_names dask/array/tests/test_array_core.py::test_from_array_ndarray_onechunk[x4] dask/array/tests/test_array_core.py::test_from_array_names dask/array/tests/test_array_core.py::test_blockwise_1_in_shape_II dask/array/tests/test_array_core.py::test_from_array_raises_on_bad_chunks dask/array/tests/test_array_core.py::test_matmul_array_ufunc dask/array/tests/test_array_core.py::test_regular_chunks[data7] dask/array/tests/test_array_core.py::test_setitem_extended_API_2d_mask[index0-value0] dask/array/tests/test_array_core.py::test_map_blocks_chunks dask/array/tests/test_array_core.py::test_view dask/array/tests/test_array_core.py::test_map_blocks_name dask/array/tests/test_array_core.py::test_broadcast_operator[u_shape0-v_shape0] dask/array/tests/test_array_core.py::test_reshape[original_shape26-new_shape26-chunks26] dask/array/tests/test_array_core.py::test_Array_numpy_gufunc_call__array_ufunc__01 dask/array/tests/test_array_core.py::test_from_array_getitem[True-False] dask/array/tests/test_array_core.py::test_broadcast_to dask/array/tests/test_array_core.py::test_regular_chunks[data4] dask/array/tests/test_array_core.py::test_from_array_tasks_always_call_getter[False-x1--1] dask/array/tests/test_array_core.py::test_nbytes_auto dask/array/tests/test_array_core.py::test_setitem_extended_API_2d[index21--98] dask/array/tests/test_array_core.py::test_broadcast_operator[u_shape6-v_shape6] dask/array/tests/test_array_core.py::test_array_compute_forward_kwargs dask/array/tests/test_array_core.py::test_tiledb_roundtrip dask/array/tests/test_array_core.py::test_reshape[original_shape18-new_shape18-4] dask/array/tests/test_array_core.py::test_stack_unknown_chunksizes dask/array/tests/test_array_core.py::test_normalize_chunks_object_dtype[dtype1] dask/array/tests/test_array_core.py::test_broadcast_operator[u_shape2-v_shape2] dask/array/tests/test_array_core.py::test_compute_chunk_sizes_warning_fixes_slicing dask/array/tests/test_array_core.py::test_setitem_extended_API_1d[index9--5] dask/array/tests/test_array_core.py::test_from_array_list[x2] dask/array/tests/test_array_core.py::test_map_blocks_with_chunks dask/array/tests/test_array_core.py::test_from_array_scalar[bytes_] dask/array/tests/test_array_core.py::test_stack_errs dask/array/tests/test_array_core.py::test_from_array_with_lock[False] dask/array/tests/test_array_core.py::test_dont_fuse_outputs dask/array/tests/test_array_core.py::test_blocks_indexer dask/array/tests/test_array_core.py::test_reshape[original_shape16-new_shape16-chunks16] dask/array/tests/test_array_core.py::test_itemsize dask/array/tests/test_array_core.py::test_compute_chunk_sizes_warning_fixes_concatenate dask/array/tests/test_array_core.py::test_from_array_list[x1] dask/array/tests/test_array_core.py::test_setitem_extended_API_2d[index17--1] dask/array/tests/test_array_core.py::test_from_array_scalar[float128] dask/array/tests/test_array_core.py::test_index_array_with_array_2d dask/array/tests/test_array_core.py::test_array_picklable[array0] dask/array/tests/test_array_core.py::test_asarray[asanyarray] dask/array/tests/test_array_core.py::test_zarr_return_stored[True] dask/array/tests/test_array_core.py::test_from_array_tasks_always_call_getter[False-x0-chunks0] dask/array/tests/test_array_core.py::test_broadcast_chunks dask/array/tests/test_array_core.py::test_slicing_with_non_ndarrays dask/array/tests/test_array_core.py::test_uneven_chunks dask/array/tests/test_array_core.py::test_cumulative dask/array/tests/test_array_core.py::test_map_blocks_infer_newaxis dask/array/tests/test_array_core.py::test_reshape[original_shape34-new_shape34-chunks34] dask/array/tests/test_array_core.py::test_reshape[original_shape23-new_shape23-6] dask/array/tests/test_array_core.py::test_chunk_non_array_like dask/array/tests/test_array_core.py::test_map_blocks_delayed dask/array/tests/test_array_core.py::test_slice_with_floats dask/array/tests/test_array_core.py::test_setitem_extended_API_2d[index0--1] dask/array/tests/test_array_core.py::test_blockview dask/array/tests/test_array_core.py::test_from_array_tasks_always_call_getter[True-x1--1] dask/array/tests/test_array_core.py::test_dask_array_holds_scipy_sparse_containers dask/array/tests/test_array_core.py::test_normalize_chunks_auto_1d[23-5-expected4] dask/array/tests/test_array_core.py::test_slicing_with_ndarray dask/array/tests/test_array_core.py::test_from_array_scalar[bool] dask/array/tests/test_array_core.py::test_reshape[original_shape22-new_shape22-24] dask/array/tests/test_array_core.py::test_from_array_tasks_always_call_getter[True-x0-chunks0] dask/array/tests/test_array_core.py::test_map_blocks_large_inputs_delayed dask/array/tests/test_array_core.py::test_empty_array dask/array/tests/test_array_core.py::test_asanyarray_datetime64 dask/array/tests/test_array_core.py::test_zero_slice_dtypes dask/array/tests/test_array_core.py::test_setitem_extended_API_1d[index0--1] dask/array/tests/test_array_core.py::test_regular_chunks[data3] dask/array/tests/test_array_core.py::test_reshape[original_shape2-new_shape2-5] dask/array/tests/test_array_core.py::test_normalize_chunks_auto_2d[shape1-chunks1-20-expected1] dask/array/tests/test_array_core.py::test_zarr_return_stored[False] dask/array/tests/test_array_core.py::test_chunks_is_immutable dask/array/tests/test_array_core.py::test_setitem_extended_API_1d[index10-value10] dask/array/tests/test_array_core.py::test_from_array_scalar[float16] dask/array/tests/test_array_core.py::test_map_blocks2 dask/array/tests/test_array_core.py::test_blockwise_large_inputs_delayed dask/array/tests/test_array_core.py::test_operator_dtype_promotion dask/array/tests/test_array_core.py::test_reshape[original_shape7-new_shape7-4] dask/array/tests/test_array_core.py::test_ellipsis_slicing dask/array/tests/test_array_core.py::test_concatenate_errs dask/array/tests/test_array_core.py::test_to_delayed dask/array/tests/test_array_core.py::test_vindex_nd dask/array/tests/test_array_core.py::test_npartitions dask/array/tests/test_array_core.py::test_normalize_chunks_auto_1d[100-10-expected0] dask/array/tests/test_array_core.py::test_from_array_ndarray_onechunk[x3] dask/array/tests/test_array_core.py::test_compute_chunk_sizes_3d_array dask/array/tests/test_array_core.py::test_regular_chunks[data1] dask/array/tests/test_array_core.py::test_top_supports_broadcasting_rules dask/array/tests/test_array_core.py::test_from_delayed dask/array/tests/test_array_core.py::test_broadcast_to_array dask/array/tests/test_array_core.py::test_setitem_extended_API_1d[index5-value5] dask/array/tests/test_array_core.py::test_normalize_chunks_auto_1d[20-10-expected1] dask/array/tests/test_array_core.py::test_from_array_scalar[longlong] dask/array/tests/test_array_core.py::test_zarr_roundtrip_with_path_like dask/array/tests/test_array_core.py::test_setitem_extended_API_2d[index13-value13] dask/array/tests/test_array_core.py::test_block_3d dask/array/tests/test_array_core.py::test_reshape_exceptions dask/array/tests/test_array_core.py::test_blockwise_literals dask/array/tests/test_array_core.py::test_from_delayed_meta dask/array/tests/test_array_core.py::test_Array_normalizes_dtype dask/array/tests/test_array_core.py::test_setitem_extended_API_1d[index7--6] dask/array/tests/test_array_core.py::test_asarray_h5py[True-asanyarray] dask/array/tests/test_array_core.py::test_compute_chunk_sizes_warning_fixes_rechunk dask/array/tests/test_array_core.py::test_top_literals dask/array/tests/test_array_core.py::test_operators dask/array/tests/test_array_core.py::test_compute_chunk_sizes_warning_fixes_to_svg dask/array/tests/test_array_core.py::test_reshape_avoids_large_chunks[shape1-chunks1-reshape_size1-67108864] dask/array/tests/test_array_core.py::test_from_array_scalar[float64] dask/array/tests/test_array_core.py::test_asarray_h5py[True-asarray] dask/array/tests/test_array_core.py::test_from_array_ndarray_onechunk[x2] dask/array/tests/test_array_core.py::test_map_blocks_with_kwargs dask/array/tests/test_array_core.py::test_normalize_chunks_auto_3d dask/array/tests/test_array_core.py::test_from_array_scalar[bool_] dask/array/tests/test_array_core.py::test_stack_rechunk dask/array/tests/test_array_core.py::test_reshape[original_shape1-new_shape1-5] dask/array/tests/test_array_core.py::test_setitem_extended_API_2d[index15--1] dask/array/tests/test_array_core.py::test_regular_chunks[data2] dask/array/tests/test_array_core.py::test_concatenate_types[dtypes1] dask/array/tests/test_array_core.py::test_from_array_getitem[False-True] dask/array/tests/test_array_core.py::test_reshape[original_shape21-new_shape21-1] dask/array/tests/test_array_core.py::test_stack_zero_size dask/array/tests/test_array_core.py::test_reshape_avoids_large_chunks[shape0-chunks0-reshape_size0-67108864] dask/array/tests/test_array_core.py::test_broadcast_dimensions_works_with_singleton_dimensions dask/array/tests/test_array_core.py::test_from_array_ndarray_onechunk[x1] dask/array/tests/test_array_core.py::test_A_property dask/array/tests/test_array_core.py::test_from_array_inline dask/array/tests/test_array_core.py::test_full dask/array/tests/test_array_core.py::test_from_array_scalar[void] dask/array/tests/test_array_core.py::test_concatenate dask/array/tests/test_array_core.py::test_map_blocks_block_info_with_broadcast dask/array/tests/test_array_core.py::test_size dask/array/tests/test_array_core.py::test_from_array_no_asarray[False-True-ndarray] dask/array/tests/test_array_core.py::test_meta[None] dask/array/tests/test_array_core.py::test_reshape_not_implemented_error dask/array/tests/test_array_core.py::test_partitions_indexer dask/array/tests/test_array_core.py::test_read_zarr_chunks dask/array/tests/test_array_core.py::test_normalize_chunks_auto_1d[20-5-expected2] dask/array/tests/test_array_core.py::test_tiledb_multiattr dask/array/tests/test_array_core.py::test_array_copy_noop[2] dask/array/tests/test_array_core.py::test_from_array_scalar[ulonglong] dask/array/tests/test_array_core.py::test_reshape[original_shape10-new_shape10-2] dask/array/tests/test_array_core.py::test_reshape_avoids_large_chunks[shape0-chunks0-reshape_size0-134217728] dask/array/tests/test_array_core.py::test_compute_chunk_sizes_warning_fixes_reduction dask/array/tests/test_array_core.py::test_point_slicing_with_full_slice dask/array/tests/test_array_core.py::test_reshape[original_shape19-new_shape19-chunks19] dask/array/tests/test_array_core.py::test_setitem_extended_API_2d[index22-value22] dask/array/tests/test_array_core.py::test_regular_chunks[data0] dask/array/tests/test_array_core.py::test_rechunk_auto dask/array/tests/test_array_core.py::test_reshape[original_shape20-new_shape20-1] dask/array/tests/test_array_core.py::test_setitem_extended_API_1d[index6--5] dask/array/tests/test_array_core.py::test_astype_gh1151 dask/array/tests/test_array_core.py::test_map_blocks_unique_name_new_axis dask/array/tests/test_array_core.py::test_to_npy_stack dask/array/tests/test_array_core.py::test_zarr_roundtrip dask/array/tests/test_array_core.py::test_slicing_flexible_type dask/array/tests/test_array_core.py::test_chunks_error dask/array/tests/test_array_core.py::test_dask_layers dask/array/tests/test_array_core.py::test_dtype_complex dask/array/tests/test_array_core.py::test_constructor_plugin dask/array/tests/test_array_core.py::test_concatenate_fixlen_strings dask/array/tests/test_array_core.py::test_uneven_chunks_blockwise dask/array/tests/test_array_core.py::test_map_blocks3 dask/array/tests/test_array_core.py::test_3851 dask/array/tests/test_array_core.py::test_concatenate_flatten dask/array/tests/test_array_core.py::test_block_invalid_nesting dask/array/tests/test_array_core.py::test_from_array_no_asarray[True-True-ndarray] dask/array/tests/test_array_core.py::test_elemwise_with_lists[other1-100] dask/array/tests/test_array_core.py::test_setitem_errs dask/array/tests/test_array_core.py::test_astype_gh9318 dask/array/tests/test_array_core.py::test_short_stack dask/array/tests/test_array_core.py::test_map_blocks_dtype_inference dask/array/tests/test_array_core.py::test_reshape_avoids_large_chunks[shape1-chunks1-reshape_size1-None] dask/array/tests/test_array_core.py::test_from_array_tasks_always_call_getter[True-x3-1] dask/array/tests/test_array_core.py::test_concatenate3_nep18_dispatching[True] dask/array/tests/test_array_core.py::test_blockwise_concatenate dask/array/tests/test_array_core.py::test_setitem_on_read_only_blocks dask/array/tests/test_array_core.py::test_empty_chunks_in_array_len dask/array/tests/test_array_core.py::test_coerce dask/array/tests/test_array_core.py::test_setitem_extended_API_2d[index12-value12] dask/array/tests/test_array_core.py::test_setitem_extended_API_1d[index11-value11] dask/array/tests/test_array_core.py::test_from_array_scalar[complex64] dask/array/tests/test_array_core.py::test_no_warnings_on_metadata dask/array/tests/test_array_core.py::test_from_array_scalar[float32] dask/array/tests/test_array_core.py::test_from_zarr_unique_name dask/array/tests/test_array_core.py::test_nbytes dask/array/tests/test_array_core.py::test_concatenate3_on_scalars dask/array/tests/test_array_core.py::test_from_array_scalar[str_] dask/array/tests/test_array_core.py::test_store_locks dask/array/tests/test_array_core.py::test_blockwise_with_numpy_arrays dask/array/tests/test_array_core.py::test_raise_on_no_chunks dask/array/tests/test_array_core.py::test_asarray_h5py[False-asanyarray] dask/array/tests/test_array_core.py::test_index_array_with_array_1d dask/array/tests/test_array_core.py::test_from_func dask/array/tests/test_array_core.py::test_compute_chunk_sizes_warning_fixes_reshape dask/array/tests/test_array_core.py::test_zarr_inline_array[False] dask/array/tests/test_array_core.py::test_asarray[asarray] dask/array/tests/test_array_core.py::test_setitem_extended_API_2d_mask[index1-value1] dask/array/tests/test_array_core.py::test_reshape_avoids_large_chunks[shape1-chunks1-reshape_size1-134217728] dask/array/tests/test_array_core.py::test_elemwise_with_lists[other2-100] dask/array/tests/test_array_core.py::test_normalize_chunks_auto_1d[1000-167-expected5] dask/array/tests/test_array_core.py::test_map_blocks_unique_name_chunks_dtype dask/array/tests/test_array_core.py::test_field_access dask/array/tests/test_array_core.py::test_setitem_extended_API_2d[5--1]