-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
implement Tick division, fix Timedelta.__cmp__ tick #24710
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
@@ -78,6 +81,27 @@ def test_unary_ops(self): | |||
|
|||
|
|||
class TestTimedeltaComparison(object): | |||
@pytest.mark.parametrize('tick_cls', [Nano, Micro, Milli, Second, |
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.
dont' we have this in a fixture? tick_classes?
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.
just pushed with this change
Codecov Report
@@ Coverage Diff @@
## master #24710 +/- ##
===========================================
- Coverage 92.38% 43.06% -49.33%
===========================================
Files 166 166
Lines 52311 52311
===========================================
- Hits 48328 22526 -25802
- Misses 3983 29785 +25802
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #24710 +/- ##
=======================================
Coverage 92.39% 92.39%
=======================================
Files 166 166
Lines 52358 52358
=======================================
Hits 48374 48374
Misses 3984 3984
Continue to review full report at Codecov.
|
does this need a whatsnew note? IOW from a user facing perspective now you can compare offsets & TDs? |
I guess. It's a weird corner case that users shouldn't really get to, but its there. Would this go in the 0.24.0 file or wait for the next one to exist? |
no you can put it there (0.24) |
Done |
thanks @jbrockmendel |
Great. What's the policy for doing stuff during the RC? i.e. there are some more Tick fixups I can do, or test cleanup/parameterization, or ... (or just be patient until after the release) |
test things / cleanup are ok |
git diff upstream/master -u -- "*.py" | flake8 --diff