Skip to content

Commit ff76617

Browse files
committed
fix test_default_codecs
1 parent 6001e93 commit ff76617

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def test_config_buffer_implementation() -> None:
254254
assert np.array_equal(arr_Crc32c[:], data2d)
255255

256256

257-
@pytest.mark.parametrize("dtype", ["int", "bytes", "str"])
257+
@pytest.mark.parametrize("dtype", ["int", "bytes", str])
258258
def test_default_codecs(dtype: str) -> None:
259259
with config.set(
260260
{
@@ -265,7 +265,7 @@ def test_default_codecs(dtype: str) -> None:
265265
}
266266
}
267267
):
268-
arr = zeros(shape=(100), dtype=dtype)
268+
arr = zeros(shape=(100), dtype=np.dtype(dtype), zarr_format=3)
269269
if dtype == "int":
270270
assert arr.metadata.codecs == [BytesCodec(), GzipCodec()]
271271
elif dtype == "bytes":

0 commit comments

Comments
 (0)