Skip to content

CLN: Period tests #32875

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 5 commits into from
Mar 22, 2020
Merged

CLN: Period tests #32875

merged 5 commits into from
Mar 22, 2020

Conversation

jbrockmendel
Copy link
Member

Pretty much re-wrote the comparison tests to match the patterns we use elsewhere, avoided bare pytest.raises.

A bunch of tests use Period("NaT", freq) which ends up being very duplicative. Cut that down a bit and marked a couple tests that belong elsewhere, will move in a separate pass.

@jbrockmendel jbrockmendel added the Testing pandas testing functions or related to the test suite label Mar 20, 2020
@jreback jreback added this to the 1.1 milestone Mar 21, 2020
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.

small comment, worth doing in this PR.

]:
assert p + o is NaT
assert o + p is NaT
for o in [
Copy link
Contributor

Choose a reason for hiding this comment

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

can you parameterize while you are at it

Copy link
Member Author

Choose a reason for hiding this comment

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

parametrized+green

@jreback jreback added the Period Period data type label Mar 22, 2020
@jreback jreback merged commit 1c8617c into pandas-dev:master Mar 22, 2020
@jreback
Copy link
Contributor

jreback commented Mar 22, 2020

thanks

@jbrockmendel jbrockmendel deleted the tst-scalars2 branch March 22, 2020 00:41
SeeminSyed pushed a commit to CSCD01-team01/pandas that referenced this pull request Mar 22, 2020
jbrockmendel added a commit to jbrockmendel/pandas that referenced this pull request Mar 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Period Period data type 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