-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
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
CLN: Period tests #32875
Conversation
There was a problem hiding this 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 [ |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parametrized+green
thanks |
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.