Skip to content

TST: Update BooleanArray _logical_method test to fail on incorrect length comparison operator #59708

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
Sep 5, 2024

Conversation

jsngn
Copy link
Contributor

@jsngn jsngn commented Sep 4, 2024

Before, if the line core/arrays/boolean.py:379 is changed from if not other_is_scalar and len(self) != len(other): to if not other_is_scalar and len(self) > len(other):, all tests still passed. Now they will fail if the comparison operator is changed to >.

@jsngn
Copy link
Contributor Author

jsngn commented Sep 4, 2024

@mroeschke Could you take a look? Thank you!

@mroeschke mroeschke added the Testing pandas testing functions or related to the test suite label Sep 5, 2024
@mroeschke mroeschke added this to the 3.0 milestone Sep 5, 2024
@mroeschke mroeschke merged commit 4f1052e into pandas-dev:main Sep 5, 2024
51 checks passed
@mroeschke
Copy link
Member

Thanks @jsngn

@jsngn jsngn deleted the mutation branch September 7, 2024 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants