Skip to content

Limit a test run for roll function by NumPy version #2092

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
Oct 7, 2024

Conversation

antonwolfy
Copy link
Contributor

@antonwolfy antonwolfy commented Oct 7, 2024

There was issue#27431 resolved since NumPy 2.1.2 which allows unsigned shift argument value for numpy.roll.
Thus test_roll_invalid_shift test from tests/third_party/cupy/manipulation_tests/test_rearrange.py::TestRollTypeError scope will no raise TypeError in that case.

dpctl#1857 is filed to address the same issue in dpctl.

Meanwhile that PR proposes to limit the test run by numpy<2.1.2 condition and to update the test again once the issue is resolved by dpctl.

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to 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?
  • If this PR is a work in progress, are you filing the PR as a draft?

@antonwolfy antonwolfy force-pushed the no-exception-from-np.roll-since-2.1.2-version branch from b17ab53 to eaa7f2f Compare October 7, 2024 15:09
Copy link
Collaborator

@vlad-perevezentsev vlad-perevezentsev left a comment

Choose a reason for hiding this comment

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

Thank you @antonwolfy !

Copy link
Contributor

github-actions bot commented Oct 7, 2024

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

@antonwolfy antonwolfy merged commit 12133a3 into master Oct 7, 2024
42 checks passed
@antonwolfy antonwolfy deleted the no-exception-from-np.roll-since-2.1.2-version branch October 7, 2024 17:23
github-actions bot added a commit that referenced this pull request Oct 7, 2024
* Update third party test failing since numpy 2.1.2

* Applied pre-commit formatting 12133a3
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