We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 925e6b3 commit d470c7fCopy full SHA for d470c7f
tests/test_api.py
@@ -355,8 +355,12 @@ def test_array_order(zarr_format: ZarrFormat) -> None:
355
356
@pytest.mark.parametrize("order", ["C", "F"])
357
def test_array_order_warns(order: MemoryOrder | None, zarr_format: ZarrFormat) -> None:
358
- with pytest.warns(RuntimeWarning, match="The `order` keyword argument .*"):
+ 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:
362
arr = zarr.ones(shape=(2, 2), order=order, zarr_format=zarr_format)
363
+
364
assert arr.order == order
365
366
vals = np.asarray(arr)
0 commit comments