Skip to content

Commit 29e231e

Browse files
committed
Fix v2 tests
1 parent 81c4641 commit 29e231e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/test_v2.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
from pathlib import Path
33
from typing import Any, Literal
44

5+
import numcodecs.blosc
56
import numpy as np
67
import pytest
7-
from numcodecs import Delta, Zlib
8-
from numcodecs.blosc import Blosc
9-
from numcodecs.zstd import Zstd
8+
from numcodecs import Blosc, Delta, Zlib, Zstd
109

1110
import zarr
1211
import zarr.core.buffer
@@ -146,11 +145,11 @@ def test_create_array_defaults(store: Store) -> None:
146145
assert not (arr.filters)
147146
arr = g.create_array("two", dtype="i8", shape=(1,), chunks=(1,))
148147
assert arr._async_array.compressors == (
149-
numcodecs.Blosc(cname="lz4", clevel=5, shuffle=numcodecs.blosc.SHUFFLE, blocksize=0),
148+
Blosc(cname="lz4", clevel=5, shuffle=numcodecs.blosc.SHUFFLE, blocksize=0),
150149
)
151150
assert not (arr.filters)
152151
arr = g.create_array("three", dtype="i8", shape=(1,), chunks=(1,), compressor=Zstd())
153-
assert arr._async_array.compressors == (numcodecs.Zstd(level=0),)
152+
assert arr._async_array.compressors == (Zstd(level=0),)
154153
assert not (arr.filters)
155154
with pytest.raises(ValueError):
156155
g.create_array(

0 commit comments

Comments
 (0)