Skip to content

Remove obsolete array API skip for test_dunder_dlpack - #3061

Merged
antonwolfy merged 1 commit into
masterfrom
remove-dlpack-array-api-skip
Sep 7, 2026
Merged

Remove obsolete array API skip for test_dunder_dlpack#3061
antonwolfy merged 1 commit into
masterfrom
remove-dlpack-array-api-skip

Conversation

@antonwolfy

@antonwolfy antonwolfy commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

The array API conformance job skipped test_dlpack.py::test_dunder_dlpack as a workaround for a bug in the test itself (tracked in array-api-tests#457): the test pinned the requested dl_device to kDLCPU while drawing copy from {True, False, None}, so on a SYCL device (reported as kDLOneAPI) the copy=False case forced a cross-device transfer and the spec-mandated BufferError was counted as a failure.

The upstream test has since been fixed to tolerate BufferError only when copy is False and the requested device differs from the array's own __dlpack_device__() — behavior dpnp already implements correctly by delegating to dpctl. The conformance job checks out the array-api-tests default branch without pinning a ref, so the fix is already picked up on new runs and the skip is now dead weight.

This change removes only that entry. The remaining tanh special-case skip is unrelated (an open array-api spec issue) and is left in place.

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • Have you added documentation for your changes, if necessary?
  • Have you added your changes to the changelog?

The upstream fix for data-apis/array-api-tests#456 has been merged, so
`test_dunder_dlpack` no longer needs to be skipped: it now tolerates the
spec-mandated BufferError for a no-copy cross-device export, which dpnp
already raises correctly. The conformance job checks out the array-api-tests
default branch (unpinned), so the fix is already picked up.
@antonwolfy antonwolfy self-assigned this Sep 6, 2026
@antonwolfy antonwolfy added this to the 0.21.0 release milestone Sep 6, 2026
@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

View rendered docs @ https://intelpython.github.io/dpnp/pull/3061/index.html

@coveralls

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 78.494% (+0.003%) from 78.491% — remove-dlpack-array-api-skip into master

@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Array API standard conformance tests for dpnp=0.21.0dev8=py314ha0e2e8e_2 ran successfully.
Passed: 1376
Failed: 0
Skipped: 6

@antonwolfy
antonwolfy marked this pull request as ready for review September 7, 2026 10:06
@antonwolfy
antonwolfy merged commit 2000d87 into master Sep 7, 2026
116 of 122 checks passed
@antonwolfy
antonwolfy deleted the remove-dlpack-array-api-skip branch September 7, 2026 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants