-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: is_utc(dateutil_utc) #39276
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
BUG: is_utc(dateutil_utc) #39276
Conversation
jbrockmendel
commented
Jan 19, 2021
•
edited
Loading
edited
- closes #xxxx
- tests added / passed
- Ensure all linting tests pass, see here for how to run them
- whatsnew entry
@@ -1023,6 +1023,9 @@ def utc_fixture(request): | |||
return request.param | |||
|
|||
|
|||
utc_fixture2 = utc_fixture |
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.
Do we need this 2nd fixture here?
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.
good catch, wont be needed until both this and the tz_compare PR are 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.
remove this?
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.
added the extra test below since the other PR got merged
pandas/_libs/tslibs/timezones.pyx
Outdated
@@ -30,11 +30,18 @@ from pandas._libs.tslibs.util cimport get_nat, is_integer_object | |||
cdef int64_t NPY_NAT = get_nat() | |||
cdef tzinfo utc_stdlib = timezone.utc | |||
cdef tzinfo utc_pytz = UTC | |||
cdef tzinfo utc_dateutil1 = dateutil_gettz("UTC") # NB: *not* the same as tzutc() |
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.
Maybe utc_dateutil_str
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.
change?
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.
updated + greenish
can you also add a whatsnew note |
updated+green |
yah ive been seeing that occasionally recently, havent figured out whats going on there rebased + green |