Skip to content

TST: make tests stricter #32527

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 13 commits into from
Mar 14, 2020
Merged

TST: make tests stricter #32527

merged 13 commits into from
Mar 14, 2020

Conversation

jbrockmendel
Copy link
Member

I expect to see some platform-specific failures, will be nice to document those where possible.

if numpy is None or orient == "index":
dtype = np.int64
if numpy is True and orient is None:
dtype = np.int64
Copy link
Member Author

Choose a reason for hiding this comment

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

@WillAyd do these conditional dtypes make sense? i was surprised that the windows special-casing was needed

Copy link
Member

Choose a reason for hiding this comment

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

I think this is related to #28560 which I closed since we deprecated the numpy argument. Are you seeing this issue generally on Windows?

Copy link
Member Author

Choose a reason for hiding this comment

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

this was necessary to get the CI passing. i havent run any other windows builds

Copy link
Member Author

Choose a reason for hiding this comment

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

are you OK with these being here like this? maybe a comment about them being made unnecessary at some point?

Copy link
Member

Choose a reason for hiding this comment

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

Can you refactor this to start with np.int64 and only special case the 32 bit needs? I think that would make it more logical to follow / clean up whenever that argument is removed

Copy link
Contributor

Choose a reason for hiding this comment

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

you can make this a fixture as well

Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

lgtm. ex comments, fixturize if possible

if numpy is None or orient == "index":
dtype = np.int64
if numpy is True and orient is None:
dtype = np.int64
Copy link
Contributor

Choose a reason for hiding this comment

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

you can make this a fixture as well

@jreback jreback added the Testing pandas testing functions or related to the test suite label Mar 11, 2020
@jreback jreback added this to the 1.1 milestone Mar 14, 2020
@jreback jreback merged commit 3b66021 into pandas-dev:master Mar 14, 2020
@jreback
Copy link
Contributor

jreback commented Mar 14, 2020

thanks

@jbrockmendel jbrockmendel deleted the check_dtype branch March 14, 2020 16:09
SeeminSyed pushed a commit to CSCD01-team01/pandas that referenced this pull request Mar 22, 2020
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.

3 participants