Skip to content

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