Skip to content

TST: dont break ABCPandasArray checks #27014

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

Closed
jbrockmendel opened this issue Jun 24, 2019 · 5 comments
Closed

TST: dont break ABCPandasArray checks #27014

jbrockmendel opened this issue Jun 24, 2019 · 5 comments
Labels
Testing pandas testing functions or related to the test suite

Comments

@jbrockmendel
Copy link
Member

Apparently tests.extension.tests_numpy patches PandasArray._typ so as to break all isinstance(obj, ABCPandasArray) checks. Learning this in the process of troubleshooting failing tests is really frustrating. This is a code smell and should be removed.

@TomAugspurger
Copy link
Contributor

TomAugspurger commented Jun 24, 2019 via email

@jbrockmendel
Copy link
Member Author

The patch caused a bunch of failures while putting together #27015 (eventually I had to just disable the entire test file). What is the compelling reason to change the behavior for these tests?

@jorisvandenbossche
Copy link
Member

What is the compelling reason to change the behavior for these tests?

Because we currently don't allow actually storing them, I think (and that hack is then a way to test them being stored)

@jbrockmendel
Copy link
Member Author

Because we currently don't allow actually storing them, I think (and that hack is then a way to test them being stored)

So we want to test that if we allow something that we dont allow, then that thing is allowed?

@TomAugspurger
Copy link
Contributor

We want to test that PandasArray correctly implements the EA interface, part of which requires allowing it to be stored in a Series / DataFrame.

@jbrockmendel jbrockmendel added the Testing pandas testing functions or related to the test suite label Jul 23, 2019
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

No branches or pull requests

3 participants