Skip to content

Commit 6e897a1

Browse files
authored
Merge pull request #246 from crusaderky/da_arange
TST: da.arange fails for args near 2**63
2 parents fbf66e0 + 2c09310 commit 6e897a1

File tree

1 file changed

+4
-55
lines changed

1 file changed

+4
-55
lines changed

dask-xfails.txt

Lines changed: 4 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,3 @@
1-
# This fails in dask
2-
# import dask.array as da
3-
# a = da.array([1]).reshape((1,1))
4-
# key = (0, slice(None, None, -1))
5-
# a[key] = da.array([1])
6-
7-
# Failing hypothesis test case
8-
#x=dask.array<zeros_like, shape=(0, 2), dtype=bool, chunksize=(0, 2), chunktype=numpy.ndarray>
9-
#| Draw 1 (key): (slice(None, None, None), slice(None, None, None))
10-
#| Draw 2 (value): dask.array<zeros_like, shape=(0, 2), dtype=bool, chunksize=(0, 2), chunktype=numpy.ndarray>
11-
12-
# Various shape mismatches e.g.
13-
ValueError: shape mismatch: value array of shape (0, 2) could not be broadcast to indexing result of shape (0, 2)
14-
array_api_tests/test_array_object.py::test_setitem
15-
16-
# Fails since bad upcast from uint8 -> int64
17-
# MRE:
18-
# a = da.array(0, dtype="uint8")
19-
# b = da.array(False)
20-
# a[b] = 0
21-
array_api_tests/test_array_object.py::test_setitem_masking
22-
231
# Various indexing errors
242
array_api_tests/test_array_object.py::test_getitem_masking
253

@@ -33,17 +11,6 @@ array_api_tests/test_data_type_functions.py::test_finfo[float32]
3311
# (I think the test is not forcing the op to be computed?)
3412
array_api_tests/test_creation_functions.py::test_linspace
3513

36-
# out.shape=(2,) but should be (1,)
37-
array_api_tests/test_indexing_functions.py::test_take
38-
39-
# out=-0, but should be +0
40-
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]
41-
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]
42-
43-
# output is nan but should be infinity
44-
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]
45-
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]
46-
4714
# Array methods and attributes not already on da.Array cannot be wrapped
4815
array_api_tests/test_has_names.py::test_has_names[array_method-__array_namespace__]
4916
array_api_tests/test_has_names.py::test_has_names[array_method-to_device]
@@ -63,25 +30,17 @@ array_api_tests/test_set_functions.py::test_unique_values
6330

6431
# fails for ndim > 2
6532
array_api_tests/test_linalg.py::test_svdvals
66-
array_api_tests/test_linalg.py::test_cholesky
6733

6834
# dtype mismatch got uint64, but should be uint8, NPY_PROMOTION_STATE=weak doesn't help :(
6935
array_api_tests/test_linalg.py::test_tensordot
7036

7137
# AssertionError: out.dtype=uint64, but should be uint8 [tensordot(uint8, uint8)]
7238
array_api_tests/test_linalg.py::test_linalg_tensordot
7339

74-
# AssertionError: out.shape=(1,), but should be () [linalg.vector_norm(keepdims=True)]
75-
array_api_tests/test_linalg.py::test_vector_norm
76-
7740
# ZeroDivisionError in dask's normalize_chunks/auto_chunks internals
7841
array_api_tests/test_linalg.py::test_inv
7942
array_api_tests/test_linalg.py::test_matrix_power
8043

81-
# did not raise error for invalid shapes
82-
array_api_tests/test_linalg.py::test_matmul
83-
array_api_tests/test_linalg.py::test_linalg_matmul
84-
8544
# Linalg - these don't exist in dask
8645
array_api_tests/test_signatures.py::test_extension_func_signature[linalg.cross]
8746
array_api_tests/test_signatures.py::test_extension_func_signature[linalg.det]
@@ -94,7 +53,6 @@ array_api_tests/test_linalg.py::test_cross
9453
array_api_tests/test_linalg.py::test_det
9554
array_api_tests/test_linalg.py::test_eigh
9655
array_api_tests/test_linalg.py::test_eigvalsh
97-
array_api_tests/test_linalg.py::test_matrix_norm
9856
array_api_tests/test_linalg.py::test_matrix_rank
9957
array_api_tests/test_linalg.py::test_pinv
10058
array_api_tests/test_linalg.py::test_slogdet
@@ -106,14 +64,10 @@ array_api_tests/test_has_names.py::test_has_names[linalg-matrix_power]
10664
array_api_tests/test_has_names.py::test_has_names[linalg-pinv]
10765
array_api_tests/test_has_names.py::test_has_names[linalg-slogdet]
10866

109-
# missing mode kw
110-
# https://github.com/dask/dask/issues/10388
111-
array_api_tests/test_linalg.py::test_qr
112-
11367
# Constructing the input arrays fails to a weird shape error...
11468
array_api_tests/test_linalg.py::test_solve
11569

116-
# missing full_matrics kw
70+
# missing full_matrices kw
11771
# https://github.com/dask/dask/issues/10389
11872
# also only supports 2-d inputs
11973
array_api_tests/test_linalg.py::test_svd
@@ -128,17 +82,12 @@ array_api_tests/test_has_names.py::test_has_names[creation-from_dlpack]
12882
array_api_tests/test_has_names.py::test_has_names[array_method-__dlpack__]
12983
array_api_tests/test_has_names.py::test_has_names[array_method-__dlpack_device__]
13084

131-
# Some cases unsupported by dask
132-
array_api_tests/test_manipulation_functions.py::test_roll
133-
13485
# No mT on dask array
13586
array_api_tests/meta/test_hypothesis_helpers.py::test_symmetric_matrices
13687

137-
# The test suite is incorrectly checking sums that have loss of significance
138-
# (https://github.com/data-apis/array-api-tests/issues/168)
139-
array_api_tests/test_statistical_functions.py::test_sum
140-
array_api_tests/test_statistical_functions.py::test_prod
88+
# Edge case of args near 2**63
89+
# https://github.com/dask/dask/issues/11706
90+
array_api_tests/test_creation_functions.py::test_arange
14191

14292
# 2023.12 support
14393
array_api_tests/test_manipulation_functions.py::test_repeat
144-
array_api_tests/test_searching_functions.py::test_searchsorted

0 commit comments

Comments
 (0)