Skip to content

GH-51481: [Python] Fix dlpack related deprecation warnings - #54690

Open
AlenkaF wants to merge 2 commits into
apache:mainfrom
AlenkaF:gh-51481-fix-dlpack-depr-warnings
Open

AlenkaF wants to merge 2 commits into
apache:mainfrom
AlenkaF:gh-51481-fix-dlpack-depr-warnings

Conversation

@AlenkaF

@AlenkaF AlenkaF commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Rationale for this change

Deprecation warnings on our CI.

What changes are included in this PR?

Added filterwarning marks and updated two tests.

Are these changes tested?

Yes.

Are there any user-facing changes?

No.

Was AI used for this PR?

PR code and description written by:

  • Human
  • AI

Reviewed before submission by:

  • Human
  • AI
  • Not reviewed

@AlenkaF

AlenkaF commented Oct 20, 2026

Copy link
Copy Markdown
Member Author

@github-actions crossbow submit test-conda-python-3.14-pandas-nightly-numpy-nightly

@AlenkaF

AlenkaF commented Oct 20, 2026

Copy link
Copy Markdown
Member Author

@github-actions crossbow submit test-cuda-python-*

@github-actions

Copy link
Copy Markdown

Revision: 0b0547b

Submitted crossbow builds: ursacomputing/crossbow @ actions-f4784d40eb

Task Status
test-conda-python-3.14-pandas-nightly-numpy-nightly GitHub Actions

@github-actions

Copy link
Copy Markdown
Unable to match any tasks for `test-cuda-python-*`
The Archery job run can be found at: https://github.com/apache/arrow/actions/runs/39408461413

@AlenkaF

AlenkaF commented Oct 20, 2026

Copy link
Copy Markdown
Member Author

@github-actions crossbow submit cuda-python

@github-actions

Copy link
Copy Markdown
Unable to match any tasks for `*cuda-python*`
The Archery job run can be found at: https://github.com/apache/arrow/actions/runs/39409603500

@AlenkaF
AlenkaF force-pushed the gh-51481-fix-dlpack-depr-warnings branch from 0b0547b to d76834e Compare October 20, 2026 12:22
@AlenkaF

AlenkaF commented Oct 20, 2026

Copy link
Copy Markdown
Member Author

@github-actions crossbow submit test-conda-python-3.14-pandas-nightly-numpy-nightly

@github-actions

Copy link
Copy Markdown

Revision: d76834e

Submitted crossbow builds: ursacomputing/crossbow @ actions-2c39a144ec

Task Status
test-conda-python-3.14-pandas-nightly-numpy-nightly GitHub Actions

@AlenkaF
AlenkaF marked this pull request as ready for review October 21, 2026 12:10
@AlenkaF
AlenkaF requested review from raulcd and rok as code owners October 21, 2026 12:10
Copilot AI balanced review requested due to automatic review settings October 21, 2026 12:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The NumPy <2.1 path still emits unhandled deprecation warnings and fails when warnings are treated as errors.

1 open issue
What changed in this PR

Addresses DLPack deprecation warnings in Python tests for GH-51481 without changing public APIs.

Changes:

  • Filters expected warnings in two legacy-export tests.
  • Adds a NumPy-version-aware helper for unsupported-export tests.
File Description
python/​pyarrow/​tests/​test_dlpack.py Adds warning filters and selects the DLPack capsule version by NumPy version.

Review effort: Balanced

Comment thread python/pyarrow/tests/test_dlpack.py
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 22, 2026 09:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused test-only changes preserve error assertions and NumPy compatibility, with no unresolved findings.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants