Freeze format_time() tests to a specific date to fix test failures by mgorny · Pull Request #998 · python-babel/babel

@mgorny

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 mentioned this pull request

Apr 7, 2023

akx

akx approved these changes May 9, 2023

akx added a commit that referenced this pull request

Jun 27, 2023

@akx