Skip to content

Commit 0080afe

Browse files
authored
Add a CuPy xfail
CuPy 13.x follows NumPy 1.x without "weak scalars". In NumPy `result_type(int32, uint8, 1) != result_type(int32, uint8)` has been fixed in 2.x (or 1.x with set_promotion_state("weak"), so hopefully CuPy 14.x follows the suite, when released. Until then, just xfail the test.
1 parent 129a9ac commit 0080afe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cupy-xfails.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ array_api_tests/test_manipulation_functions.py::test_repeat
183183
array_api_tests/test_signatures.py::test_func_signature[from_dlpack]
184184
array_api_tests/test_signatures.py::test_array_method_signature[__dlpack__]
185185

186-
+# 2024.12 support
186+
# 2024.12 support
187187
array_api_tests/test_signatures.py::test_func_signature[count_nonzero]
188188
array_api_tests/test_signatures.py::test_func_signature[bitwise_and]
189189
array_api_tests/test_signatures.py::test_func_signature[bitwise_left_shift]
@@ -192,3 +192,5 @@ array_api_tests/test_signatures.py::test_func_signature[bitwise_right_shift]
192192
array_api_tests/test_signatures.py::test_func_signature[bitwise_xor]
193193
array_api_tests/test_special_cases.py::test_binary[nextafter(x1_i is +0 and x2_i is -0) -> -0]
194194

195+
# cupy 13.x follows numpy 1.x w/o weak promotion: result_type(int32, uint8, 1) != result_type(int32, uint8)
196+
array_api_tests/test_data_type_functions.py::TestResultType::test_with_scalars

0 commit comments

Comments
 (0)