From 9e26e67e5220262869b2a9963076c326a349c291 Mon Sep 17 00:00:00 2001 From: Evgeni Burovski Date: Thu, 23 Apr 2026 09:26:14 +0200 Subject: [PATCH] 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. --- array-api-tests-xfails.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/array-api-tests-xfails.txt b/array-api-tests-xfails.txt index a1a5dc9..b7042ff 100644 --- a/array-api-tests-xfails.txt +++ b/array-api-tests-xfails.txt @@ -49,3 +49,6 @@ array_api_tests/test_special_cases.py::test_unary[sqrt(real(x_i) is +infinity an # remove this when array-api-strict 2.6 is released: this is only for array-api-tests, # which runs self-tests against a released array-api-strict array_api_tests/test_dlpack.py::test_from_dlpack + +# NumPy 1.26 : NotImplementedError: The copy argument to __dlpack__ is not yet implemented +array_api_tests/test_dlpack.py::test_dunder_dlpack