Skip to content

ENH: add parameter strict to assert_array_less #24775

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 1 commit into from
Oct 3, 2023

Conversation

mdhaber
Copy link
Contributor

@mdhaber mdhaber commented Sep 22, 2023

This adds the parameter strict to np.testing.assert_array_less. With strict=True, the shape and dtype of the two arguments must match for the assertion to pass.

Follows the example of #21595
Partially addresses suggestion in #24667 (comment)
Addresses #24770 (comment)

This adds the parameter strict to np.testing.assert_array_less.
With strict=True, the shape and dtype of the two arguments must
match for the assertion to pass.
@ngoldbaum
Copy link
Member

Thank you @mdhaber, this looks great!

@ngoldbaum ngoldbaum merged commit 07bc934 into numpy:main Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants