Skip to content

TST: skip test_reshape under numpy < 2 and dask - #458

Merged
ev-br merged 1 commit into
data-apis:mainfrom
ev-br:skip_reshape_failures
Jul 29, 2026
Merged

TST: skip test_reshape under numpy < 2 and dask#458
ev-br merged 1 commit into
data-apis:mainfrom
ev-br:skip_reshape_failures

Conversation

@ev-br

@ev-br ev-br commented Jul 29, 2026

Copy link
Copy Markdown
Member

The copy=False wrapper does y.shape = newshape, and this fails on NumPy < 2 and Dask.

The copy=False wrapper does `y.shape = newshape`, and this fails
on NumPy < 2 and Dask.

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.

Pull request overview

This PR updates the array-api-tests xfail/skip configuration to avoid running array_api_tests/test_manipulation_functions.py::test_reshape for NumPy < 2 (tested here via 1.22 and 1.26) and for Dask, where the copy=False reshape wrapper relies on y.shape = ... and triggers backend-specific failures.

Changes:

  • Add test_reshape to numpy-1-22-xfails.txt and numpy-1-26-xfails.txt with a note about the scalar/copy=False code path under NumPy < 2.
  • Add test_reshape to dask-xfails.txt with a note that Dask does not support assigning to .shape.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
numpy-1-26-xfails.txt Adds an xfail/skip entry for test_reshape on NumPy 1.26 due to the copy=False reshape implementation details.
numpy-1-22-xfails.txt Adds an xfail/skip entry for test_reshape on NumPy 1.22 for the same underlying reshape copy=False behavior.
dask-xfails.txt Adds an xfail/skip entry for test_reshape on Dask due to .shape assignment incompatibility.

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

@ev-br
ev-br merged commit cf2a6d8 into data-apis:main Jul 29, 2026
28 checks passed
@ev-br ev-br added this to the 1.16 milestone Jul 29, 2026
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.

2 participants