Skip to content

Commit 4e3d809

Browse files
committed
TST: add xfails for NumPy 1.22 and 1.26 / python scalars
1 parent 7d7a858 commit 4e3d809

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

numpy-1-22-xfails.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,13 @@ array_api_tests/test_operators_and_elementwise_functions.py::test_subtract[subtr
123123
array_api_tests/test_searching_functions.py::test_where
124124
array_api_tests/test_special_cases.py::test_iop[__iadd__(x1_i is -0 and x2_i is -0) -> -0]
125125

126+
array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_scalars_real[add]
127+
array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_scalars_real[divide]
128+
array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_scalars_real[hypot]
129+
array_api_tests/test_operators_and_elementwise_functions.py::test_binary_with_scalars_real[subtract]
130+
131+
array_api_tests/test_operators_and_elementwise_functions.py::test_where_with_scalars
132+
126133
# 2023.12 support
127134
array_api_tests/test_has_names.py::test_has_names[creation-from_dlpack]
128135
array_api_tests/test_signatures.py::test_func_signature[from_dlpack]

numpy-1-26-xfails.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ array_api_tests/test_signatures.py::test_func_signature[bitwise_right_shift]
5050
array_api_tests/test_signatures.py::test_func_signature[bitwise_xor]
5151
array_api_tests/test_data_type_functions.py::TestResultType::test_with_scalars
5252

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

0 commit comments

Comments
 (0)