Skip to content

Commit 9d78166

Browse files
committed
Fix error message for unknown chunk key encoding in create_array test
1 parent 0289779 commit 9d78166

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_array.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,11 +1247,11 @@ async def test_chunk_key_encoding(
12471247
chunk_key_encoding = ChunkKeyEncodingParams(name=name, separator=separator) # type: ignore[typeddict-item]
12481248
error_msg = ""
12491249
if name == "invalid":
1250-
error_msg = "Unknown chunk key encoding."
1250+
error_msg = r'Unknown chunk key encoding: "Chunk key encoding \'invalid\' not found in registered chunk key encodings: \[.*\]."'
12511251
if zarr_format == 2 and name == "default":
12521252
error_msg = "Invalid chunk key encoding. For Zarr format 2 arrays, the `name` field of the chunk key encoding must be 'v2'."
12531253
if error_msg:
1254-
with pytest.raises(ValueError, match=re.escape(error_msg)):
1254+
with pytest.raises(ValueError, match=error_msg):
12551255
arr = await create_array(
12561256
store=store,
12571257
dtype="uint8",

0 commit comments

Comments
 (0)