File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1247,11 +1247,11 @@ async def test_chunk_key_encoding(
1247
1247
chunk_key_encoding = ChunkKeyEncodingParams (name = name , separator = separator ) # type: ignore[typeddict-item]
1248
1248
error_msg = ""
1249
1249
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: \[.*\]."'
1251
1251
if zarr_format == 2 and name == "default" :
1252
1252
error_msg = "Invalid chunk key encoding. For Zarr format 2 arrays, the `name` field of the chunk key encoding must be 'v2'."
1253
1253
if error_msg :
1254
- with pytest .raises (ValueError , match = re . escape ( error_msg ) ):
1254
+ with pytest .raises (ValueError , match = error_msg ):
1255
1255
arr = await create_array (
1256
1256
store = store ,
1257
1257
dtype = "uint8" ,
You can’t perform that action at this time.
0 commit comments