Skip to content

Commit 904df22

Browse files
committed
Fix error message for unknown chunk key encoding in create_array test
1 parent 0379429 commit 904df22

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
@@ -1246,11 +1246,11 @@ async def test_chunk_key_encoding(
12461246
chunk_key_encoding = ChunkKeyEncodingParams(name=name, separator=separator) # type: ignore[typeddict-item]
12471247
error_msg = ""
12481248
if name == "invalid":
1249-
error_msg = "Unknown chunk key encoding."
1249+
error_msg = r'Unknown chunk key encoding: "Chunk key encoding \'invalid\' not found in registered chunk key encodings: \[.*\]."'
12501250
if zarr_format == 2 and name == "default":
12511251
error_msg = "Invalid chunk key encoding. For Zarr format 2 arrays, the `name` field of the chunk key encoding must be 'v2'."
12521252
if error_msg:
1253-
with pytest.raises(ValueError, match=re.escape(error_msg)):
1253+
with pytest.raises(ValueError, match=error_msg):
12541254
arr = await create_array(
12551255
store=store,
12561256
dtype="uint8",

0 commit comments

Comments
 (0)