Skip to content

Commit 9e26e67

Browse files
authored
TST: skip test_dunder_dlpack for numpy 1.26
NumPy 1.26 does not implement copy= argument to `__dlpack__`. We don't have a good way to skip the test on numpy <2 only, and adding the infra just for this edge case is not worth it. Thus just skip the test while we support numpy <2.
1 parent 324d5cb commit 9e26e67

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

array-api-tests-xfails.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,6 @@ array_api_tests/test_special_cases.py::test_unary[sqrt(real(x_i) is +infinity an
4949
# remove this when array-api-strict 2.6 is released: this is only for array-api-tests,
5050
# which runs self-tests against a released array-api-strict
5151
array_api_tests/test_dlpack.py::test_from_dlpack
52+
53+
# NumPy 1.26 : NotImplementedError: The copy argument to __dlpack__ is not yet implemented
54+
array_api_tests/test_dlpack.py::test_dunder_dlpack

0 commit comments

Comments
 (0)