-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
TST: don't fail on systems with tzdata backzone enabled #51486
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
The Windows timeout seems to be something that "randomly" happens (see other recent failures). Maybe we should increase the timeout, or if that's too expensive, run only a subset of tests there? |
Thanks @rebecca-palmer No objections to merging, would just appreciate it if you explain the issue a little more Is it that thanks! |
Author: Rebecca N. Palmer <rebecca_palmer@zoho.com> Bug-Debian: https://bugs.debian.org/1031437 Forwarded: pandas-dev/pandas#51486 Gbp-Pq: Name 1031437.patch
This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this. |
gentle ping (would much appreciate a little explanation of why this is necessary, I couldn't follow it from the link) |
Africa/Lagos has a transition, and hence the AmbiguousTimeError the test checks for, on that date. On systems without backzone enabled, Africa/Kinshasa is a copy of Africa/Lagos (because they're the same timezone since before 1970(?)), and also does that. However, on systems with backzone enabled, Africa/Kinshasa has its own timezone history, which doesn't have a transition on that date. This causes the test to fail on such systems. This fixes this by instead using Africa/Lagos in the test. |
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.
Makes sense - thanks @rebecca-palmer !
Author: Rebecca N. Palmer <rebecca_palmer@zoho.com> Bug-Debian: https://bugs.debian.org/1031437 Forwarded: pandas-dev/pandas#51486 Gbp-Pq: Name 1031437.patch
Author: Rebecca N. Palmer <rebecca_palmer@zoho.com> Bug-Debian: https://bugs.debian.org/1031437 Forwarded: pandas-dev/pandas#51486 Gbp-Pq: Name 1031437.patch
Author: Rebecca N. Palmer <rebecca_palmer@zoho.com> Bug-Debian: https://bugs.debian.org/1031437 Forwarded: pandas-dev/pandas#51486 Gbp-Pq: Name 1031437.patch
test_dst.py specifies Africa/Kinshasa but expects a transition date (AmbiguousTimeError) that is actually for Africa/Lagos. On systems that enable tzdata's backzone file (which Debian and Ubuntu unstable now do), these are different, and the test hence fails (log).
This makes the obvious fix.