Skip to content

Conversation

mdklatt
Copy link

@mdklatt mdklatt commented Jun 1, 2023

This PR:

All checks are passing except for some unrelated and previously-broken tests:

  • [doctest] babel.dates.format_time
  • [doctest] babel.dates.get_timezone_name

mdklatt added 2 commits June 27, 2023 23:05
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
@codecov
Copy link

codecov bot commented Jun 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.57%. Comparing base (95a0ea8) to head (deebeb2).
Report is 78 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1006      +/-   ##
==========================================
- Coverage   90.90%   89.57%   -1.34%     
==========================================
  Files          25       25              
  Lines        4356     4356              
==========================================
- Hits         3960     3902      -58     
- Misses        396      454      +58     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash with double-slashes in /etc/localtime on Python 3.9
1 participant