diff options
author | Colin Watson <cjwatson@debian.org> | 2024-03-06 15:59:29 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2024-03-06 16:23:45 +0000 |
commit | d88d937603bc20c5fb447c9604991755a1408739 (patch) | |
tree | d1099971307fb6d14e13523e42cf61f93ed38e56 | |
parent | 0fba85ba383ce8310616167d6a1b6375755ac5f6 (diff) |
Avoid backward-compatibility timezone namesarchive/debian/3.0.3+dfsg-1
"US/Eastern" and "Australia/Queensland" are counted as
backward-compatibility links, and are no longer shipped in all
installations. Use the corresponding canonical timezone names instead.
Forwarded: https://github.com/jsonpickle/jsonpickle/pull/479
Last-Update: 2024-03-06
Gbp-Pq: Name avoid-legacy-timezones.patch
-rw-r--r-- | tests/datetime_test.py | 4 | ||||
-rw-r--r-- | tests/zoneinfo_test.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/datetime_test.py b/tests/datetime_test.py index 06f96ae..e51cc11 100644 --- a/tests/datetime_test.py +++ b/tests/datetime_test.py @@ -179,10 +179,10 @@ class DateTimeSimpleTestCase(unittest.TestCase): now = datetime.datetime.now() SaoPaulo = ZoneInfo('America/Sao_Paulo') - USEastern = ZoneInfo('US/Eastern') + NewYork = ZoneInfo('America/New_York') now_sp = now.replace(tzinfo=SaoPaulo) - now_us = now.replace(tzinfo=USEastern) + now_us = now.replace(tzinfo=NewYork) self._roundtrip(now_sp) self._roundtrip(now_us) diff --git a/tests/zoneinfo_test.py b/tests/zoneinfo_test.py index 5c7f3db..3d87c15 100644 --- a/tests/zoneinfo_test.py +++ b/tests/zoneinfo_test.py @@ -20,7 +20,7 @@ if sys.version_info >= (3, 9): """ jsonpickle should pickle a zoneinfo object """ - self._roundtrip(ZoneInfo("Australia/Queensland")) + self._roundtrip(ZoneInfo("Australia/Brisbane")) def suite(): suite = unittest.TestSuite() |