Skip to content

Comments

TST: add skips for broadcast_shapes#392

Draft
ev-br wants to merge 1 commit intodata-apis:mainfrom
ev-br:skips_for_broadcast_shapes
Draft

TST: add skips for broadcast_shapes#392
ev-br wants to merge 1 commit intodata-apis:mainfrom
ev-br:skips_for_broadcast_shapes

Conversation

@ev-br
Copy link
Member

@ev-br ev-br commented Feb 23, 2026

  • dask does not implement broadcast_shapes
  • torch emits a RuntimeError not ValueError

- dask does not implement `broadcast_shapes`
- torch emits a RuntimeError not ValueError
Copilot AI review requested due to automatic review settings February 23, 2026 11:45
@ev-br ev-br added this to the 1.14 milestone Feb 23, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the library-specific array-api-tests expectation lists to account for new/changed broadcast_shapes tests in the 2025.12 test suite, reflecting current gaps/behavior in Dask and PyTorch backends.

Changes:

  • Add Dask xfails for TestBroadcastShapes (test_broadcast_shapes, test_empty, test_error) for 2025.12.
  • Add a PyTorch xfail for TestBroadcastShapes::test_error (exception type mismatch vs spec) for 2025.12.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
torch-xfails.txt Adds a 2025.12 xfail entry for TestBroadcastShapes::test_error (wrong exception type).
dask-xfails.txt Adds a 2025.12 xfail block for TestBroadcastShapes tests (feature not implemented).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +170 to +173
# 2025.12 support

# torch raises a RuntimeError while the spec requires a ValueError
array_api_tests/test_data_type_functions.py::TestBroadcastShapes::test_error
Copy link

Copilot AI Feb 23, 2026

Choose a reason for hiding this comment

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

PR title/description says “add skips for broadcast_shapes”, but the changes here are adding entries to the xfails lists. If these tests should be skipped (e.g., due to hangs/flakiness), move them to the appropriate *-skips.txt; otherwise update the PR title/description to reflect that these are expected failures (xfails).

Copilot uses AI. Check for mistakes.
@ev-br ev-br marked this pull request as draft February 23, 2026 13:16
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.

1 participant