Skip to content

Commit 92bcbf9

Browse files
committed
revert hypothesis tests
1 parent afbb8b0 commit 92bcbf9

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

tests/test_properties.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
import hypothesis.extra.numpy as npst
1515
import hypothesis.strategies as st
16-
from hypothesis import HealthCheck, assume, given, settings
16+
from hypothesis import assume, given, settings
1717

1818
from zarr.abc.store import Store
1919
from zarr.core.common import ZARR_JSON, ZARRAY_JSON, ZATTRS_JSON
@@ -76,7 +76,6 @@ def deep_equal(a: Any, b: Any) -> bool:
7676
return a == b
7777

7878

79-
@settings(deadline=None) # Increased from default 200ms to None
8079
@given(data=st.data(), zarr_format=zarr_formats)
8180
def test_array_roundtrip(data: st.DataObject, zarr_format: int) -> None:
8281
nparray = data.draw(numpy_arrays(zarr_formats=st.just(zarr_format)))
@@ -118,11 +117,10 @@ def test_basic_indexing(data: st.DataObject) -> None:
118117
assert_array_equal(nparray, zarray[:])
119118

120119

121-
@settings(deadline=None, suppress_health_check=[HealthCheck.too_slow])
122120
@given(data=st.data())
123121
def test_oindex(data: st.DataObject) -> None:
124122
# integer_array_indices can't handle 0-size dimensions.
125-
zarray = data.draw(simple_arrays(shapes=npst.array_shapes(max_dims=3, min_side=1, max_side=8)))
123+
zarray = data.draw(simple_arrays(shapes=npst.array_shapes(max_dims=4, min_side=1)))
126124
nparray = zarray[:]
127125

128126
zindexer, npindexer = data.draw(orthogonal_indices(shape=nparray.shape))
@@ -140,16 +138,15 @@ def test_oindex(data: st.DataObject) -> None:
140138
assert_array_equal(nparray, zarray[:])
141139

142140

143-
@settings(deadline=None, suppress_health_check=[HealthCheck.too_slow])
144141
@given(data=st.data())
145142
def test_vindex(data: st.DataObject) -> None:
146143
# integer_array_indices can't handle 0-size dimensions.
147-
zarray = data.draw(simple_arrays(shapes=npst.array_shapes(max_dims=3, min_side=1, max_side=8)))
144+
zarray = data.draw(simple_arrays(shapes=npst.array_shapes(max_dims=4, min_side=1)))
148145
nparray = zarray[:]
149146

150147
indexer = data.draw(
151148
npst.integer_array_indices(
152-
shape=nparray.shape, result_shape=npst.array_shapes(min_side=1, max_dims=2, max_side=8)
149+
shape=nparray.shape, result_shape=npst.array_shapes(min_side=1, max_dims=None)
153150
)
154151
)
155152
actual = zarray.vindex[indexer]

0 commit comments

Comments
 (0)