From 3814128f419ae0b39711865b5c3a255197a131ea Mon Sep 17 00:00:00 2001 From: David Arnold Date: Sat, 1 Feb 2025 05:25:49 +0000 Subject: [PATCH] Change unit test to use "America/New_York" time zone name. Ubuntu 24.10 (at least) has removed the "US/*" time zone names from the installed zoneinfo database: the files are now available through a supplementary package, "tzdata-legacy", but it is not installed by default. To avoid confusing, pointless, breakage, switch to using the "America/New_York" name, which is (thus far) universally available, but semantically identical. --- tests/test_icalendar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_icalendar.py b/tests/test_icalendar.py index e3fd81a..8b8bc21 100644 --- a/tests/test_icalendar.py +++ b/tests/test_icalendar.py @@ -549,11 +549,11 @@ def test_omits_dst_offset(): # Check dateutil, pytz, and zoneinfo (3.9+) tzinfo instances _timezones = [] if "dateutil" in globals(): - tz = dateutil.tz.gettz("US/Eastern") + tz = dateutil.tz.gettz("America/New_York") assert tz is not None _timezones.append(tz) if "zoneinfo" in globals(): - tz = zoneinfo.ZoneInfo("US/Eastern") + tz = zoneinfo.ZoneInfo("America/New_York") assert tz is not None _timezones.append(tz)