Commit 3ececee
committed
TST: dask: xfail searchorted_scalars test on dask
Dask does not allow scalars as arguments to searchsorted:
$ ARRAY_API_TESTS_MODULE=array_api_compat.dask.array pytest array_api_tests/test_searching_functions.py::test_searchsorted_with_scalars --max-examples 500
...
@given(data=st.data())
> def test_searchsorted_with_scalars(data):
^^^
...
# call np.searchsorted for each pair of blocks in a and v
> meta = np.searchsorted(a._meta, v._meta)
^^^^^^^
E AttributeError: 'int' object has no attribute '_meta'
E
E ========== FAILING CODE SNIPPET:
E xp.searchsorted(dask.array<sort, shape=(1,), dtype=uint8, chunksize=(1,), chunktype=numpy.ndarray>, 0, sorter=None, **kw) with kw = {}
E ====================1 parent 11f4d3f commit 3ececee
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
| |||
0 commit comments