Skip to content

MAINT: update CuPy xfails #319

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion cupy-xfails.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ array_api_tests/test_operators_and_elementwise_functions.py::test_subtract[__sub
array_api_tests/test_operators_and_elementwise_functions.py::test_add[__add__(x, s)]
# floating point inaccuracy
array_api_tests/test_operators_and_elementwise_functions.py::test_remainder[remainder(x1, x2)]
# incomplete NEP50 support in CuPy 13.x (fixed in 14.0.0a1)
array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_scalars_real[pow]
array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_scalars_real[logaddexp]
array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_scalars_real[nextafter]
array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_scalars_real[hypot]

# cupy (arg)min/max wrong with infinities
# https://github.com/cupy/cupy/issues/7424
Expand Down Expand Up @@ -185,7 +190,6 @@ array_api_tests/test_signatures.py::test_func_signature[from_dlpack]
array_api_tests/test_signatures.py::test_array_method_signature[__dlpack__]

# 2024.12 support
array_api_tests/test_signatures.py::test_func_signature[count_nonzero]
array_api_tests/test_signatures.py::test_func_signature[bitwise_and]
array_api_tests/test_signatures.py::test_func_signature[bitwise_left_shift]
array_api_tests/test_signatures.py::test_func_signature[bitwise_or]
Expand Down
7 changes: 7 additions & 0 deletions numpy-1-22-xfails.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,13 @@ array_api_tests/test_operators_and_elementwise_functions.py::test_subtract[subtr
array_api_tests/test_searching_functions.py::test_where
array_api_tests/test_special_cases.py::test_iop[__iadd__(x1_i is -0 and x2_i is -0) -> -0]

array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_scalars_real[add]
array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_scalars_real[divide]
array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_scalars_real[hypot]
array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_scalars_real[subtract]

array_api_tests/test_operators_and_elementwise_functions.py::test_where_with_scalars

# 2023.12 support
array_api_tests/test_has_names.py::test_has_names[creation-from_dlpack]
array_api_tests/test_signatures.py::test_func_signature[from_dlpack]
Expand Down
2 changes: 2 additions & 0 deletions numpy-1-26-xfails.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ array_api_tests/test_signatures.py::test_func_signature[bitwise_right_shift]
array_api_tests/test_signatures.py::test_func_signature[bitwise_xor]
array_api_tests/test_data_type_functions.py::TestResultType::test_with_scalars

array_api_tests/test_operators_and_elementwise_functions.py::test_where_with_scalars

# Stubs have a comment: (**note**: libraries may return ``NaN`` to match Python behavior.); Apparently, NumPy does just that
array_api_tests/test_special_cases.py::test_binary[floor_divide(x1_i is +infinity and isfinite(x2_i) and x2_i > 0) -> +infinity]
array_api_tests/test_special_cases.py::test_binary[floor_divide(x1_i is +infinity and isfinite(x2_i) and x2_i < 0) -> -infinity]
Expand Down
Loading