Skip to content

TST: rewrite convert_dtypes test to make it easier extendable #38113

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 2 commits into from
Nov 28, 2020

Conversation

jorisvandenbossche
Copy link
Member

I have a branch adding convert_floating support for convert_dtypes, and the current way they are written is not really maintainable when adding more keywords (eg the tuples of 4 would become tuples of 5, making it even harder to know what is what, and making the formatting less easy to follow).

In this PR, I just refactored how the test cases are defined and didn't change any actual content.

@jorisvandenbossche jorisvandenbossche added the Testing pandas testing functions or related to the test suite label Nov 27, 2020
Copy link
Contributor

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I think at some point there were some more complexities in the exceptions, but they have evolved to be more simplified, so your implementation takes advantage of that.

@Dr-Irv Dr-Irv merged commit dfa9d6f into pandas-dev:master Nov 28, 2020
@jorisvandenbossche jorisvandenbossche deleted the tst-convert-dtypes branch November 28, 2020 14:31
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