1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
Description: Fix test failure with tzdata 2024b-3.
EST & MET are obsoleted and moved to tzdata-legacy.
Author: Bas Couwenberg <sebastic@debian.org>
Forwarded: https://github.com/Toblerity/Fiona/pull/1458
Applied-Upstream: https://github.com/Toblerity/Fiona/commit/8c48abf3a889b4e62529e662680bbd0abb998058
--- a/tests/test_datetime.py
+++ b/tests/test_datetime.py
@@ -318,12 +318,12 @@ def test_compare_times_utc():
d1 = (
datetime.datetime(2020, 6, 21, 12, 0, 0, tzinfo=pytz.utc)
- .astimezone(timezone("MET"))
+ .astimezone(timezone("Europe/Brussels"))
.timetz()
)
d2 = (
datetime.datetime(2020, 6, 21, 12, 0, 0, tzinfo=pytz.utc)
- .astimezone(timezone("EST"))
+ .astimezone(timezone("America/Panama"))
.timetz()
)
assert compare_times_utc(d1, d2)
|