Skip to content

Commit 7fd4b14

Browse files
committed
xfail with shards
1 parent 2170389 commit 7fd4b14

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_properties.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import hypothesis.extra.numpy as npst
99
import hypothesis.strategies as st
10-
from hypothesis import given
10+
from hypothesis import assume, given
1111

1212
from zarr.abc.store import Store
1313
from zarr.core.metadata import ArrayV2Metadata, ArrayV3Metadata
@@ -53,6 +53,7 @@ def test_oindex(data: st.DataObject) -> None:
5353
actual = zarray.oindex[zindexer]
5454
assert_array_equal(nparray[npindexer], actual)
5555

56+
assume(zarray.shards is None) # GH2834
5657
new_data = data.draw(npst.arrays(shape=st.just(actual.shape), dtype=nparray.dtype))
5758
nparray[npindexer] = new_data
5859
zarray.oindex[zindexer] = new_data

0 commit comments

Comments
 (0)