Skip to content

Commit 74edc35

Browse files
committed
TST: xfail test_device_to_device with numpy < 2
It relies on asarray having the copy kwarg, which is not present otherwise
1 parent 434d630 commit 74edc35

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_common.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@ def test_device_to_device(library, request):
195195
xfail(request, reason="Stub raises ValueError")
196196
if library == "sparse":
197197
xfail(request, reason="No __array_namespace_info__()")
198+
if libray == "array_api_strict":
199+
if np.__version__ < "2":
200+
xfail(request, reason="no copy argument of np.asarray")
198201

199202
xp = import_(library, wrapper=True)
200203
devices = xp.__array_namespace_info__().devices()

0 commit comments

Comments
 (0)