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

DOC: testing.assert_array_equal: distinguish from assert_equal #24875

Merged
merged 1 commit into from
Oct 14, 2023

Conversation

mdhaber
Copy link
Contributor

@mdhaber mdhaber commented Oct 7, 2023

Closes gh-8457

The documentation of assert_array_equal and assert_equal did not identify the differences between the two. This clarifies that assert_equal has a superset of assert_array_equal functionality and suggests favoring assert_equal in new code.

I forgot to skip all but doc builds this time. Oops!

The documentation of `assert_array_equal` and `assert_equal`
did not identify the differences between the two. This clarifies
that `assert_equal` has a superset of `assert_array_equal`
functionality and suggests use of `assert_equal` in new code.
Copy link
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

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

This language LGTM and renders well. @ngoldbaum was also happy with this version in the discussion on gh-8457.

It was discussed in the community meeting, and there were some concerns about moving assert_array_equal to the list of legacy functions. So it looks like this PR is good to go - in it goes. Thanks for working through this @mdhaber!

@rgommers rgommers merged commit dbd30ce into numpy:main Oct 14, 2023
51 checks passed
@rgommers rgommers added this to the 2.0.0 release milestone Oct 14, 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.

Clarify difference between np.testing.assert_equal and np.testing.assert_array_equal
2 participants