Skip to content

Commit 1937ee5

Browse files
committed
update test_invalid_chunk_encoding
1 parent 74b45bb commit 1937ee5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_array.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,27 +1155,27 @@ async def test_v2_chunk_encoding(
11551155
assert arr.filters == filters_expected
11561156

11571157
@staticmethod
1158-
async def test_bad_chunk_encoding(store: MemoryStore) -> None:
1158+
async def test_invalid_chunk_encoding(store: MemoryStore) -> None:
11591159
"""
11601160
Test that passing an invalid compressor or filter to create_array raises an error.
11611161
"""
1162-
bad_compressor = 2
1163-
msg = f"For Zarr format 2 arrays, the `compressor` must be a single codec. Expected None, a numcodecs.abc.Codec, or a dict or str representation of a numcodecs.abc.Codec. Got {type(bad_compressor)} instead."
1162+
invalid_compressor_type = 2
1163+
msg = f"For Zarr format 2 arrays, the `compressor` must be a single codec. Expected None, a numcodecs.abc.Codec, or a dict or str representation of a numcodecs.abc.Codec. Got {type(invalid_compressor_type)} instead."
11641164
with pytest.raises(ValueError, match=msg):
11651165
await create_array(
11661166
store=store,
11671167
dtype="uint8",
11681168
shape=(10,),
11691169
zarr_format=2,
1170-
compressors=bad_compressor,
1170+
compressors=invalid_compressor_type,
11711171
)
11721172
with pytest.raises(KeyError):
11731173
await create_array(
11741174
store=store,
11751175
dtype="uint8",
11761176
shape=(10,),
11771177
zarr_format=3,
1178-
filters="bad_filter",
1178+
filters="nonexistent_filter_name",
11791179
)
11801180

11811181
@staticmethod

0 commit comments

Comments
 (0)