-
Notifications
You must be signed in to change notification settings - Fork 444
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
Fix for #990 (updated) #1035
base: master
Are you sure you want to change the base?
Fix for #990 (updated) #1035
Conversation
Need some working tests before attempting to fix python-babel#990. Refs python-babel#990
In certain OS installations, the target of /etc/localtime contains double slashes. This is a valid path, but not a valid zoneinfo key. This fix replaces `os.readlink` with `os.path.realpath`, which is guaranteed to return a normalized path. Fixes python-babel#990
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.
Would it be possible to formulate the tests without adding the new pyfakefs
dependency?
The Unix tests are the only ones that use |
That sounds a bit heavy-handed too... What if you just |
It turns out that
The It looks like it would only be necessary to mock |
This is an update of #1006 that incorporates upstream fixes to previously-broken tests. It should pass all CI checks now.
This PR:
localtime
module (developed on macOS, test stub added for Windows)