-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
algebra cleanup in FY5253 and Easter offsets #18350
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #18350 +/- ##
==========================================
- Coverage 91.38% 91.37% -0.02%
==========================================
Files 164 164
Lines 49790 49758 -32
==========================================
- Hits 45501 45465 -36
- Misses 4289 4293 +4
Continue to review full report at Codecov.
|
pass | ||
elif other == next_year: | ||
n += 1 | ||
# TODO: Not hit in tests |
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 we hit these in tests
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.
It wasn't obvious to me how to hit it, so I left the note to try again next time around. (which will be soon. We're far from done with offsets PRs)
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.
@jbrockmendel : If you don't mind explaining, how do you know that this particular branch isn't hit? What about the other branches?
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.
BTW, the changes themselves look OK but would like to get some more color on the questions I just posed to you before merging.
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.
Put in a bunch of assert false
statements as a quick coverage check. All the others were hit.
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.
Ah, I see. From which test files did those assert false
failures then originate?
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.
Almost certainly tests.tseries.offsets.test_offsets
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.
Okay, sounds good. Have a look at those tests once I merge to see how we can increase coverage in this section of logic.
I think there's one more algebra/cleanup after this, then we're jumping into bugfixes. |
I doubt we have very many tests for this. @gfyoung can you have a look and see if the changes look ok. |
@jreback : I'll take a look later this evening. If all looks good, can I just merge this? |
yep |
#14774 has a use case that hits one of the existing |
@jbrockmendel : Merged and closed. Thanks! |
Same types of cleanups you've gotten used to seeing elsewhere, now applied to FY5253 and Easter. This should be orthogonal to others.