Skip to content

Commit 3493c70

Browse files
committed
fix v2 test
1 parent 6272cfd commit 3493c70

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_v2.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import zarr.core.buffer
1313
import zarr.storage
1414
from zarr import Array
15+
from zarr.core.config import config
1516
from zarr.storage import MemoryStore, StorePath
1617

1718

@@ -125,12 +126,12 @@ async def test_create_dtype_str(dtype: Any) -> None:
125126
np.testing.assert_array_equal(result, np.array(["a", "bb", "ccc"], dtype="object"))
126127

127128

128-
@pytest.mark.filterwarnings("ignore:The `order` keyword argument.*")
129129
@pytest.mark.parametrize("filters", [[], [numcodecs.Delta(dtype="<i4")], [numcodecs.Zlib(level=2)]])
130130
@pytest.mark.parametrize("order", ["C", "F"])
131131
def test_v2_filters_codecs(filters: Any, order: Literal["C", "F"]) -> None:
132132
array_fixture = [42]
133-
arr = zarr.create(shape=1, dtype="<i4", zarr_format=2, filters=filters, order=order)
133+
with config.set({"array.order": order}):
134+
arr = zarr.create(shape=1, dtype="<i4", zarr_format=2, filters=filters)
134135
arr[:] = array_fixture
135136
result = arr[:]
136137
np.testing.assert_array_equal(result, array_fixture)

0 commit comments

Comments
 (0)