]> git.ipfire.org Git - thirdparty/babel.git/commit
Freeze format_time() tests to a specific date to fix test failures (#998)
authorMichał Górny <mgorny@gentoo.org>
Tue, 9 May 2023 08:20:04 +0000 (10:20 +0200)
committerGitHub <noreply@github.com>
Tue, 9 May 2023 08:20:04 +0000 (11:20 +0300)
commit8b152dbe47cb830f66ad12bd3057e6128aeac072
tree157660469b7334f171fc4a556857530f5b6a3c14
parent134c792df3b6aa84de3e74e81a875493c95dcc2e
Freeze format_time() tests to a specific date to fix test failures (#998)

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.
tests/test_dates.py