gh-85702: Catch PermissionError in zoneinfo.load_tzdata()#136117
gh-85702: Catch PermissionError in zoneinfo.load_tzdata()#136117vstinner merged 3 commits intopython:mainfrom
Conversation
|
On Windows, test_zoneinfo.test_bad_keys() fails without this fix if tzdata is installed. test_zoneinfo.test_bad_keys() pass with this fix (if tzdata is installed). |
I added a comment. |
ZeroIntensity
left a comment
There was a problem hiding this comment.
I think there should be a test for this on Windows.
|
There already was, see Victor's comment: #136117 (comment) So I assume we have no CI/Buildbots with tzdata installed. |
|
Yeah, I know, intuition is telling me that we don't want tests that incidentally catch a bug. But I didn't realize that there aren't buildbots with tzdata installed, so I guess it's a moot point. |
…rbwu.rst Co-authored-by: Peter Bierma <[email protected]>
There is already test_zoneinfo.test_bad_keys(). |
ZeroIntensity
left a comment
There was a problem hiding this comment.
LGTM as well. Looking at the test, it does seem to be exercising exactly what I'd wanted. We should probably try to get tzdata installed on one of the Windows buildbots.
|
I hope I get a definitive reply to my question on the Discord... I can install it on mine but I will probably have to drop it to unstable. |
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
…onGH-136117) (cherry picked from commit ee47670) Co-authored-by: Victor Stinner <[email protected]> Co-authored-by: Peter Bierma <[email protected]>
|
Sorry, @vstinner, I could not cleanly backport this to |
|
GH-136128 is a backport of this pull request to the 3.14 branch. |
…136117) (#136128) gh-85702: Catch PermissionError in zoneinfo.load_tzdata() (GH-136117) (cherry picked from commit ee47670) Co-authored-by: Victor Stinner <[email protected]> Co-authored-by: Peter Bierma <[email protected]>
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
…onGH-136117) (cherry picked from commit ee47670) Co-authored-by: Victor Stinner <[email protected]> Co-authored-by: Peter Bierma <[email protected]>
|
GH-136136 is a backport of this pull request to the 3.13 branch. |
…136117) (#136136) gh-85702: Catch PermissionError in zoneinfo.load_tzdata() (GH-136117) (cherry picked from commit ee47670) Co-authored-by: Victor Stinner <[email protected]> Co-authored-by: Peter Bierma <[email protected]>
…on#136117) Co-authored-by: Peter Bierma <[email protected]>
…on#136117) Co-authored-by: Peter Bierma <[email protected]>
…on#136117) Co-authored-by: Peter Bierma <[email protected]>
…on#136117) Co-authored-by: Peter Bierma <[email protected]>
…on#136117) Co-authored-by: Peter Bierma <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.