From 5357f50bed9a830994faf663416c4b05b21f00b0 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Thu, 10 Aug 2023 08:02:50 +0200 Subject: [PATCH] Geography: Replace Canada/Newfoundland with America/St_Johns in tests https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1040997 --- plugins/Geography/test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/Geography/test.py b/plugins/Geography/test.py index cc88a47fd..0b496d2fa 100644 --- a/plugins/Geography/test.py +++ b/plugins/Geography/test.py @@ -79,11 +79,11 @@ class GeographyTimezoneTestCase(PluginTestCase): "timezone New York", r"America/New_York \(currently UTC-[45]\)" ) - tz = pytz.timezone("Canada/Newfoundland") + tz = pytz.timezone("America/St_Johns") with patch.object(wikidata, "timezone_from_uri", return_value=tz): self.assertRegexp( "timezone Newfoundland", - r"Canada/Newfoundland \(currently UTC-[23]:30\)", + r"America/St_Johns \(currently UTC-[23]:30\)", ) tz = pytz.timezone("Asia/Kolkata") @@ -107,11 +107,11 @@ class GeographyTimezoneTestCase(PluginTestCase): "timezone New York", r"America/New_York \(currently UTC-[45]\)" ) - tz = zoneinfo.ZoneInfo("Canada/Newfoundland") + tz = zoneinfo.ZoneInfo("America/St_Johns") with patch.object(wikidata, "timezone_from_uri", return_value=tz): self.assertRegexp( "timezone Newfoundland", - r"Canada/Newfoundland \(currently UTC-[23]:30\)", + r"America/St_Johns \(currently UTC-[23]:30\)", ) tz = zoneinfo.ZoneInfo("Asia/Kolkata")