Skip to content

Commit d470c7f

Browse files
committed
Fix test
1 parent 925e6b3 commit d470c7f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/test_api.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,12 @@ def test_array_order(zarr_format: ZarrFormat) -> None:
355355

356356
@pytest.mark.parametrize("order", ["C", "F"])
357357
def test_array_order_warns(order: MemoryOrder | None, zarr_format: ZarrFormat) -> None:
358-
with pytest.warns(RuntimeWarning, match="The `order` keyword argument .*"):
358+
if zarr_format == 3:
359+
with pytest.warns(RuntimeWarning, match="The `order` keyword argument .*"):
360+
arr = zarr.ones(shape=(2, 2), order=order, zarr_format=zarr_format)
361+
else:
359362
arr = zarr.ones(shape=(2, 2), order=order, zarr_format=zarr_format)
363+
360364
assert arr.order == order
361365

362366
vals = np.asarray(arr)

0 commit comments

Comments
 (0)