Skip to content

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