Freeze format_time() tests to a specific date to fix test failures by mgorny · Pull Request #998 · python-babel/babel
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
akx approved these changes May 9, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters