Skip to content
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

Fix running functional tests with NumPy 2.2 (backport #1437) #1448

Closed
wants to merge 1 commit into from

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Mar 18, 2025

testcase performs an if not check on annotations passed in asserts.

From NumPy 2.2 this raises an exception about ambiguous falseyness [1], so convert the array to a string when passing it as an annotation to get around this.

[1]: https://numpy.org/devdocs/release/2.2.0-notes.html#expired-deprecations


This is an automatic backport of pull request #1437 done by Mergify.

`testcase` performs an `if not` check on annotations passed in asserts.

From NumPy 2.2 this raises an exception about ambiguous falseyness [1],
so convert the array to a string when passing it as an annotation to
get around this.

[1]: https://numpy.org/devdocs/release/2.2.0-notes.html#expired-deprecations

(cherry picked from commit cf9b883)
Copy link
Contributor Author

mergify bot commented Mar 18, 2025

This pull request has been removed from the queue for the following reason: checks failed.

The merge conditions cannot be satisfied due to failing checks:

You may have to fix your CI before adding the pull request to the queue again.

If you want to requeue this pull request, you can post a @mergifyio requeue comment.

@tobias-urdin
Copy link
Contributor

Included in #1449

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

Successfully merging this pull request may close these issues.

2 participants