Skip to content

Commit 8c9c784

Browse files
committed
go for green
1 parent f178e28 commit 8c9c784

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

array_api_compat/_dask_ci_shim.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""
2+
A little CI shim for the dask backend that
3+
disables the dask scheduler
4+
"""
5+
import dask
6+
dask.config.set(scheduler='synchronous')
7+
8+
from dask.distributed import Client
9+
_client = Client()
10+
print(_client.dashboard_link)
11+
12+
from .dask import *
13+
from .dask import __array_api_version__

dask-xfails.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ array_api_tests/test_array_object.py::test_setitem
1515
# Various indexing errors
1616
array_api_tests/test_array_object.py::test_getitem_masking
1717

18-
1918
# asarray(copy=False) is not yet implemented
2019
# copied from numpy xfails, TODO: should this pass with dask?
2120
array_api_tests/test_creation_functions.py::test_asarray_arrays
@@ -26,6 +25,16 @@ array_api_tests/test_creation_functions.py::test_eye
2625
# finfo(float32).eps returns float32 but should return float
2726
array_api_tests/test_data_type_functions.py::test_finfo[float32]
2827

28+
# shape mismatch
29+
array_api_tests/test_creation_functions.py::test_linspace
30+
31+
# out=-0, but should be +0
32+
array_api_tests/test_special_cases.py::test_binary[__pow__(x1_i is -0 and x2_i > 0 and not (x2_i.is_integer() and x2_i % 2 == 1)) -> +0]
33+
34+
# output is nan but should be infinity
35+
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]
36+
array_api_tests/test_special_cases.py::test_iop[__ipow__(x1_i is -0 and x2_i > 0 and not (x2_i.is_integer() and x2_i % 2 == 1)) -> +0]
37+
2938
# No sorting in dask
3039
array_api_tests/test_has_names.py::test_has_names[sorting-argsort]
3140
array_api_tests/test_has_names.py::test_has_names[sorting-sort]

0 commit comments

Comments
 (0)