Skip to content

Commit

Permalink
Fix test for numcodecs 0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
dstansby committed Aug 24, 2024
1 parent 897d4c3 commit 2a9e45e
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions zarr/tests/test_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,20 @@ def test_encode_decode_array_dtype_shape_v3(cname):
fill_value=None,
chunk_memory_layout="C",
)
if 'cname' == "zstd":
configuration = """
"configuration": {
"level": 1
"checksum": False
}
"""
else:
configuration = """
"configuration": {
"level": 1
}
"""


meta_json = (
"""{
Expand All @@ -296,12 +310,9 @@ def test_encode_decode_array_dtype_shape_v3(cname):
"""
+ f"""
"codec": "https://purl.org/zarr/spec/codec/{cname}/1.0",
{configuration},
"""
+ """
"configuration": {
"level": 1
}
},
"data_type": "<f8",
"extensions": [],
"fill_value": null,
Expand Down

0 comments on commit 2a9e45e

Please sign in to comment.