-
-
Notifications
You must be signed in to change notification settings - Fork 18.9k
TST : Add comprehensive unit tests for tm.shares_memory utility function (GH#55372) #62291
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
base: main
Are you sure you want to change the base?
Conversation
This is a start, but there are a ton of cases not covered before we can close #55372 |
@@ -30,3 +30,18 @@ def test_shares_memory_string(): | |||
|
|||
obj = pd.array(["a", "b"], dtype=pd.ArrowDtype(pa.string())) | |||
assert tm.shares_memory(obj, obj) | |||
|
|||
|
|||
# Unit tests for tm.shares_memory (#55372) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this comment isnt helpful
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I will remove this.
I agree that many important cases (like Series, DataFrame, MultiIndex, etc.) are not yet covered due to current implementation limitations. |
Edited the OP to reflect that this doesn't close the issue, set the CI to re-run as the failures should be unrelated. ill merge once that comes back green. |
The tests cover the currently supported cases: Numpy arrays and RangeIndex
Please let me know if my approach or fix needs any improvements . I’m open to feedback and happy to make changes based on suggestions.
Thanks!