Skip to content

Commit af4a00e

Browse files
author
Martin Durant
committed
Last line
1 parent 950cf91 commit af4a00e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

zarr/tests/test_storage.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -937,13 +937,14 @@ def test_s3_complex(self):
937937
a[:4] = expected[:4]
938938

939939
a = g.create_dataset("data_f", shape=(8, ), chunks=(1,),
940-
dtype=[('foo', 'S3'), ('bar', 'i4')])
941-
a['foo'] = b"aaa"
940+
dtype=[('foo', 'S3'), ('bar', 'i4')],
941+
fill_value=(b"b", 1))
942+
a[:4] = (b"aaa", 2)
942943
g = zarr.open_group("s3://test/out.zarr", mode='r',
943944
storage_options=self.s3so)
944945

945946
assert (g.data[:] == expected).all()
946-
assert g.data_f['foo'].tolist() == [b"aaa"] * 8
947+
assert g.data_f['foo'].tolist() == [b"aaa"] * 4 + [b"b"] * 4
947948

948949

949950
@pytest.fixture()

0 commit comments

Comments
 (0)