-
Notifications
You must be signed in to change notification settings - Fork 42
TST: skip dlpack tests on numpy 1.2x, dask, and cupy #412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -191,3 +191,8 @@ array_api_tests/test_special_cases.py::test_unary[expm1((real(x_i) is +0 or real | |||||
| array_api_tests/test_special_cases.py::test_unary[sqrt(real(x_i) is +infinity and isfinite(imag(x_i)) and imag(x_i) > 0) -> +0 + infinity j] | ||||||
| array_api_tests/test_special_cases.py::test_unary[acosh(real(x_i) is +0 and imag(x_i) is NaN) -> NaN \xb1 \u03c0j/2] | ||||||
| array_api_tests/test_special_cases.py::test_unary[tanh(real(x_i) is +infinity and isfinite(imag(x_i)) and imag(x_i) > 0) -> 1 + 0j] | ||||||
|
|
||||||
| # no dlpack support | ||||||
|
||||||
| # no dlpack support | |
| # NumPy 1.22 has from_dlpack/__dlpack__, but device handling and full DLPack protocol compliance are still missing/non-compliant |
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -85,6 +85,9 @@ array_api_tests/test_special_cases.py::test_unary[sqrt(real(x_i) is +infinity an | |||||||||
| array_api_tests/test_special_cases.py::test_unary[acosh(real(x_i) is +0 and imag(x_i) is NaN) -> NaN \xb1 \u03c0j/2] | ||||||||||
| array_api_tests/test_special_cases.py::test_unary[tanh(real(x_i) is +infinity and isfinite(imag(x_i)) and imag(x_i) > 0) -> 1 + 0j] | ||||||||||
|
|
||||||||||
|
|
||||||||||
| # no dlpack support | ||||||||||
|
||||||||||
| # no dlpack support | |
| # DLPack-related Array API tests are still incompatible: ndarray lacks | |
| # __dlpack__/__dlpack_device__, and NumPy's from_dlpack support does not | |
| # yet match these test expectations. |
Copilot
AI
Apr 3, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This DLPack-related xfail block is far away from the existing # 2023.12 support section that already contains the from_dlpack / __dlpack__ signature xfails. To keep the file organized, please move this block next to the other DLPack entries (or add a dedicated DLPack section) so all related xfails are co-located.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment
# CuPy 14 does not support copy= dlpack argumentis a bit unclear/grammatically off. Please clarify it to explicitly reference the DLPack protocol/__dlpack__keyword argument (e.g., that CuPy’s__dlpack__/from_dlpackdoes not accept thecopy=keyword expected by the Array API tests).