-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: enable test_numpy tests with ArrayManager #42780
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
Conversation
jbrockmendel
commented
Jul 28, 2021
- closes #xxxx
- tests added / passed
- Ensure all linting tests pass, see here for how to run them
- whatsnew entry
@@ -697,6 +699,7 @@ def __init__( | |||
|
|||
if verify_integrity: | |||
self._axes = [ensure_index(ax) for ax in axes] | |||
arrays = [extract_pandas_array(x, None, 1)[0] for x in arrays] |
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.
Slightly off topic (since we already do this elsewhere), but this check is only needed for when using the patched version in the tests?
If so, I am wondering if we should use some "TEST_MODE" env variable so we can check that here and do this step only when running the patched test, to avoid the overhead this is adding for real code.
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.
yah i increasingly think that test file is more trouble than its worth. we should try to salvage the subset of tests that directly test PandasArray and disable the others
@skip_nested | ||
def test_setitem_loc_scalar_mixed(self, data): | ||
# AssertionError | ||
super().test_setitem_loc_scalar_mixed(data) |
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.
Where those already working? (as those are generally skipped, not only for ArrayManager)
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.
AFAICT the added check in indexing.py fixed this for both AM and BM.
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.
do we need a note for this? e.g. is this a user facing bug fix?
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.
no and no