Skip to content

Commit 5431cc9

Browse files
committed
xfails
1 parent 10c2042 commit 5431cc9

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/pint_array/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ def nonzero(x, /):
536536

537537
def searchsorted(x1, x2, /, *, side="left", sorter=None):
538538
if sorter is not None:
539+
x1 = asarray(x1)
539540
x1 = take(x1, sorter)
540541

541542
magnitude_x1 = xp.asarray(x1.magnitude, copy=True)

xp-tests-xfails.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,13 @@ array_api_tests/test_has_names.py::test_has_names[linalg-tensordot]
3636
array_api_tests/test_has_names.py::test_has_names[linalg-trace]
3737
array_api_tests/test_has_names.py::test_has_names[linalg-vecdot]
3838
array_api_tests/test_has_names.py::test_has_names[linalg-vector_norm]
39+
array_api_tests/test_operators_and_elementwise_functions.py::test_bitwise_left_shift[__lshift__(x1, x2)]
40+
array_api_tests/test_operators_and_elementwise_functions.py::test_bitwise_left_shift[__lshift__(x, s)]
41+
array_api_tests/test_operators_and_elementwise_functions.py::test_bitwise_right_shift[__rshift__(x1, x2)]
42+
array_api_tests/test_operators_and_elementwise_functions.py::test_bitwise_right_shift[__rshift__(x, s)]
3943
# flaky on macos
4044
array_api_tests/test_operators_and_elementwise_functions.py::test_sqrt
4145
# `pow` with array x2 is only defined when all elements of x2 are equal
4246
array_api_tests/test_operators_and_elementwise_functions.py::test_pow[pow(x1, x2)]
47+
array_api_tests/test_operators_and_elementwise_functions.py::test_pow[__pow__(x1, x2)]
48+
array_api_tests/test_operators_and_elementwise_functions.py::test_pow[__pow__(x, s)]

0 commit comments

Comments
 (0)