Skip to content

CLN: misplaced TimedeltaIndex tests #31755

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
Feb 9, 2020

Conversation

jbrockmendel
Copy link
Member

No description provided.

Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

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

lgtm. similar comment on other PR probably best to just do a straight move and do new tests / parametrization separately to make reviews easier, but I think this one is OK

@WillAyd WillAyd added the Testing pandas testing functions or related to the test suite label Feb 6, 2020
@jreback jreback added this to the 1.1 milestone Feb 6, 2020
with pytest.raises(TypeError, match="1-d array"):
to_timedelta(arg)
for errors in ["ignore", "raise", "coerce"]:
with pytest.raises(TypeError, match="1-d array"):
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't this actually have different behavor for coerce / ignore? e.g. this should not raise.

Copy link
Member Author

Choose a reason for hiding this comment

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

with a 2D input it always raises

Copy link
Contributor

Choose a reason for hiding this comment

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

ahh ok, its to_timedelta, nvm

@jreback jreback added the Timedelta Timedelta data type label Feb 6, 2020
@jreback jreback merged commit 61034b4 into pandas-dev:master Feb 9, 2020
@jbrockmendel jbrockmendel deleted the misplaced-tests branch February 9, 2020 15:39
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 Timedelta Timedelta data type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants