Skip to content

test_take: test axis being optional if x.ndim==1 #385

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

Merged
merged 2 commits into from
Jun 18, 2025

Conversation

ev-br
Copy link
Member

@ev-br ev-br commented Jun 17, 2025

Continues, supersedes and closes gh-192:

  • make axis optional in take with 1D x
  • drop a skip of test_bitwise_xor, this is unrelated and have not been seen for a while
  • while at it, test axis<0

asmeurer and others added 2 commits June 17, 2025 09:59
I didn't explicitly test axis=None because it's not clear to me that should
actually be supported, given that that's the same as axis=0.
@ev-br ev-br closed this Jun 17, 2025
@ev-br ev-br reopened this Jun 17, 2025
@ev-br
Copy link
Member Author

ev-br commented Jun 17, 2025

Tested locally with 10_000 examples on numpy, torch, jax.numpy and cupy. On dask, the test is xfailed anyhow, and this PR does not fix the xfail.

@ev-br ev-br merged commit a50f202 into data-apis:master Jun 18, 2025
4 of 6 checks passed
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