Skip to content
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

Freeze format_time() tests to a specific date to fix test failures #998

Merged
merged 1 commit into from
May 9, 2023

Commits on Apr 7, 2023

  1. Freeze format_time() tests to a specific date to fix test failures

    Freeze the date when performing the tests for format_time() with
    a timezone specified.  Since the time object does not specify a date,
    the formatter uses the format string specific to the current date.
    As a result, if the current DST state is different than when the test
    was last updated, it failed.
    
    This fix covers only regular tests.  I have no idea how to do the same
    for doctests.
    
    Issue python-babel#988
    mgorny committed Apr 7, 2023
    Configuration menu
    Copy the full SHA
    641f58c View commit details
    Browse the repository at this point in the history