Skip to content

Commit 8e3687b

Browse files
eric-czechmergify[bot]
authored andcommitted
Improve performance of max_str_len test #336
1 parent ac2d0d3 commit 8e3687b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sgkit/tests/test_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ def test_split_array_chunks__size(a: int, b: int) -> None:
122122
@pytest.mark.parametrize("chunks", [None, -1, 5])
123123
@pytest.mark.parametrize("backend", [xr.DataArray, np.array, da.array])
124124
@given(st.data())
125-
@settings(max_examples=25)
125+
@settings(max_examples=10, deadline=None)
126126
def test_max_str_len(dtype, chunks, backend, data):
127-
shape = data.draw(st.lists(st.integers(0, 15), min_size=0, max_size=3))
127+
shape = data.draw(st.lists(st.integers(0, 8), min_size=0, max_size=3))
128128
ndim = len(shape)
129129
x = data.draw(arrays(dtype=dtype if dtype != "O" else "U", shape=shape))
130130
x = backend(x)

0 commit comments

Comments
 (0)