Skip to content

Commit 7da965c

Browse files
committed
Fix clip test failures for dask (xfailed for now)
1 parent 4d591d0 commit 7da965c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

array_api_compat/dask/array/_aliases.py

+1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ def _dask_arange(
8888
permute_dims = get_xp(da)(_aliases.permute_dims)
8989
std = get_xp(da)(_aliases.std)
9090
var = get_xp(da)(_aliases.var)
91+
clip = get_xp(da)(_aliases.clip)
9192
empty = get_xp(da)(_aliases.empty)
9293
empty_like = get_xp(da)(_aliases.empty_like)
9394
full = get_xp(da)(_aliases.full)

dask-xfails.txt

+3
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ array_api_tests/test_special_cases.py::test_iop[__ipow__(x1_i is -0 and x2_i > 0
4848
array_api_tests/test_special_cases.py::test_iop[__ipow__(x1_i is -infinity and x2_i > 0 and not (x2_i.is_integer() and x2_i % 2 == 1)) -> +infinity]
4949
array_api_tests/test_special_cases.py::test_binary[__pow__(x1_i is -infinity and x2_i > 0 and not (x2_i.is_integer() and x2_i % 2 == 1)) -> +infinity]
5050

51+
# The clip helper uses boolean indexing
52+
array_api_tests/test_operators_and_elementwise_functions.py::test_clip
53+
5154
# No sorting in dask
5255
array_api_tests/test_has_names.py::test_has_names[sorting-argsort]
5356
array_api_tests/test_has_names.py::test_has_names[sorting-sort]

0 commit comments

Comments
 (0)