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

TST: Add SparseArray _arith_method test to fail on incorrect comparison operator #59648

Merged
merged 8 commits into from
Aug 31, 2024

Conversation

jsngn
Copy link
Contributor

@jsngn jsngn commented Aug 28, 2024

Before, if the line core/arrays/sparse/array.py:1768 is changed from if len(self) != len(other): to if len(self) > len(other):, all tests still passed. Now they will fail if the comparison operator is changed to anything besides !=.

@jsngn
Copy link
Contributor Author

jsngn commented Aug 29, 2024

@mroeschke Could you take a look at the change? Thanks!

@mroeschke mroeschke added Testing pandas testing functions or related to the test suite Sparse Sparse Data Type labels Aug 29, 2024
@mroeschke mroeschke added this to the 3.0 milestone Aug 31, 2024
@mroeschke mroeschke merged commit 9b49486 into pandas-dev:main Aug 31, 2024
47 checks passed
@mroeschke
Copy link
Member

Thanks @jsngn

@jsngn jsngn deleted the mutation branch September 4, 2024 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Sparse Sparse Data Type 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