Skip to content

Commit 2a9e45e

Browse files
committed
Fix test for numcodecs 0.13
1 parent 897d4c3 commit 2a9e45e

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

zarr/tests/test_meta.py

+15-4
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,20 @@ def test_encode_decode_array_dtype_shape_v3(cname):
282282
fill_value=None,
283283
chunk_memory_layout="C",
284284
)
285+
if 'cname' == "zstd":
286+
configuration = """
287+
"configuration": {
288+
"level": 1
289+
"checksum": False
290+
}
291+
"""
292+
else:
293+
configuration = """
294+
"configuration": {
295+
"level": 1
296+
}
297+
"""
298+
285299

286300
meta_json = (
287301
"""{
@@ -296,12 +310,9 @@ def test_encode_decode_array_dtype_shape_v3(cname):
296310
"""
297311
+ f"""
298312
"codec": "https://purl.org/zarr/spec/codec/{cname}/1.0",
313+
{configuration},
299314
"""
300315
+ """
301-
"configuration": {
302-
"level": 1
303-
}
304-
},
305316
"data_type": "<f8",
306317
"extensions": [],
307318
"fill_value": null,

0 commit comments

Comments
 (0)