Skip to content

Commit

Permalink
MAINT: always skip test_nan_propagation[cumulative_prod] (#265)
Browse files Browse the repository at this point in the history
cumulative_sum is excluded, and so should be cumulative_prod
  • Loading branch information
ev-br authored Mar 3, 2025
1 parent a48a186 commit fc8777f
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 11 deletions.
1 change: 0 additions & 1 deletion cupy-xfails.txt
Original file line number Diff line number Diff line change
Expand Up @@ -191,5 +191,4 @@ array_api_tests/test_signatures.py::test_func_signature[bitwise_or]
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_special_cases.py::test_binary[nextafter(x1_i is +0 and x2_i is -0) -> -0]
array_api_tests/test_special_cases.py::test_nan_propagation[cumulative_prod]

2 changes: 1 addition & 1 deletion dask-xfails.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ array_api_tests/test_linalg.py::test_matrix_norm
array_api_tests/test_linalg.py::test_qr
array_api_tests/test_manipulation_functions.py::test_roll

# Stubs have a comment: (**note**: libraries may return ``NaN`` to match Python behavior.)
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]
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 All @@ -140,4 +141,3 @@ array_api_tests/test_special_cases.py::test_iop[__ifloordiv__(x1_i is -infinity
array_api_tests/test_special_cases.py::test_iop[__ifloordiv__(x1_i is -infinity and isfinite(x2_i) and x2_i < 0) -> +infinity]
array_api_tests/test_special_cases.py::test_iop[__ifloordiv__(isfinite(x1_i) and x1_i > 0 and x2_i is -infinity) -> -0]
array_api_tests/test_special_cases.py::test_iop[__ifloordiv__(isfinite(x1_i) and x1_i < 0 and x2_i is +infinity) -> -0]
array_api_tests/test_special_cases.py::test_nan_propagation[cumulative_prod]
4 changes: 2 additions & 2 deletions numpy-1-21-xfails.txt
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,13 @@ array_api_tests/test_signatures.py::test_array_method_signature[__dlpack__]
array_api_tests/test_manipulation_functions.py::test_repeat

# 2024.12 support
array_api_tests/test_special_cases.py::test_nan_propagation[cumulative_prod]

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]
array_api_tests/test_signatures.py::test_func_signature[bitwise_right_shift]
array_api_tests/test_signatures.py::test_func_signature[bitwise_xor]

# 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]
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
4 changes: 2 additions & 2 deletions numpy-1-26-xfails.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ array_api_tests/test_signatures.py::test_array_method_signature[__dlpack__]
array_api_tests/test_manipulation_functions.py::test_repeat

# 2024.12 support
array_api_tests/test_special_cases.py::test_nan_propagation[cumulative_prod]

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]
array_api_tests/test_signatures.py::test_func_signature[bitwise_right_shift]
array_api_tests/test_signatures.py::test_func_signature[bitwise_xor]

# 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]
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
4 changes: 2 additions & 2 deletions numpy-dev-xfails.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ array_api_tests/test_signatures.py::test_extension_func_signature[linalg.vecdot]
array_api_tests/test_manipulation_functions.py::test_repeat

# 2024.12 support
array_api_tests/test_special_cases.py::test_nan_propagation[cumulative_prod]

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]
array_api_tests/test_signatures.py::test_func_signature[bitwise_right_shift]
array_api_tests/test_signatures.py::test_func_signature[bitwise_xor]

# 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]
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
2 changes: 0 additions & 2 deletions numpy-xfails.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ array_api_tests/test_signatures.py::test_array_method_signature[__dlpack__]
array_api_tests/test_manipulation_functions.py::test_repeat

# 2024.12 support
array_api_tests/test_special_cases.py::test_nan_propagation[cumulative_prod]

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
1 change: 0 additions & 1 deletion torch-xfails.txt
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,3 @@ array_api_tests/test_signatures.py::test_array_method_signature[__lshift__]
array_api_tests/test_signatures.py::test_array_method_signature[__or__]
array_api_tests/test_signatures.py::test_array_method_signature[__rshift__]
array_api_tests/test_signatures.py::test_array_method_signature[__xor__]
array_api_tests/test_special_cases.py::test_nan_propagation[cumulative_prod]

0 comments on commit fc8777f

Please sign in to comment.