-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
remove enum import for PY2 compat, xref #22802 #24170
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 #24170 +/- ##
=======================================
Coverage 92.21% 92.21%
=======================================
Files 162 162
Lines 51721 51721
=======================================
Hits 47692 47692
Misses 4029 4029
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #24170 +/- ##
==========================================
- Coverage 92.21% 92.21% -0.01%
==========================================
Files 162 162
Lines 51763 51763
==========================================
- Hits 47734 47733 -1
- Misses 4029 4030 +1
Continue to review full report at Codecov.
|
this is quite tricky to test as would have to uninstall enum34 first. |
I wonder if we could do something like
We could also do this in the |
@@ -152,20 +164,17 @@ def round_nsint64(values, mode, freq): | |||
:obj:`ndarray` | |||
""" | |||
|
|||
if not isinstance(mode, RoundTo): | |||
raise ValueError('mode should be a RoundTo member') |
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.
Not sure if it matters (probably doesn't) but it seems like bad modes will now raise an AssertionError
instead of a ValueError
.
Just a few questions, none of them probably matter. The testing can be done separately I think (would be good to verify before we tag 0.24). |
I'll be able to confirm that this works in the absence of enum34, once this hits the nightly builds. |
@TomAugspurger updated |
* upstream/master: pct change bug issue 21200 (pandas-dev#21235) DOC: Fix summaries not ending with a period (pandas-dev#24190) DOC: Add back currentmodule to api.rst (pandas-dev#24232) DOC: Fixed implicit imports for whatsnew (v >= version 20.0) (pandas-dev#24199) remove enum import for PY2 compat, xref pandas-dev#22802 (pandas-dev#24170) CI: Simplify Azure Pipelines configuration files (pandas-dev#23111) REF/TST: Add more pytest idiom to indexing/multiindex/test_getitem.py (pandas-dev#24053)
Just a note that our tests based on the nightly builds are now passing. Thanks! |
great! @effigies |
xref #22802