Skip to content

Commit 950cf91

Browse files
author
Martin Durant
committed
cover again
1 parent 6b2c39a commit 950cf91

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

zarr/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1660,7 +1660,7 @@ def _chunk_getitems(self, lchunk_coords, lchunk_selection, out, lout_selection,
16601660
out_is_ndarray = True
16611661
try:
16621662
out = ensure_ndarray(out)
1663-
except TypeError:
1663+
except TypeError: # pragma: no cover
16641664
out_is_ndarray = False
16651665

16661666
ckeys = [self._chunk_key(ch) for ch in lchunk_coords]

zarr/tests/test_storage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -931,12 +931,12 @@ def test_s3_complex(self):
931931
expected = np.empty((8, 8, 8), dtype='int64')
932932
expected[:] = -1
933933
a = g.create_dataset("data", shape=(8, 8, 8),
934-
fill_value=-1)
934+
fill_value=-1, chunks=(1, 1, 1))
935935
expected[0] = 0
936936
expected[3] = 3
937937
a[:4] = expected[:4]
938938

939-
a = g.create_dataset("data_f", shape=(8, ),
939+
a = g.create_dataset("data_f", shape=(8, ), chunks=(1,),
940940
dtype=[('foo', 'S3'), ('bar', 'i4')])
941941
a['foo'] = b"aaa"
942942
g = zarr.open_group("s3://test/out.zarr", mode='r',

0 commit comments

Comments
 (0)