From 56e978cfffc6196d47a69d8c5f24c1f7f2428493 Mon Sep 17 00:00:00 2001 From: Daniel Hannon Date: Sun, 15 Feb 2026 20:30:31 +0000 Subject: [PATCH 1/2] gh-144849: Unit test fails if ran with Europe/Dublin locale --- Lib/test/test_time.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py index da0cf494bfa8ad..720509bc58f749 100644 --- a/Lib/test/test_time.py +++ b/Lib/test/test_time.py @@ -803,11 +803,15 @@ def test_localtime_timezone(self): if lt.tm_gmtoff is None: self.assertNotHasAttr(time, "timezone") else: - self.assertEqual(lt.tm_gmtoff, -[time.timezone, time.altzone][lt.tm_isdst]) + # Ireland standard time is during the summer, so it's the opposite to everything else + if time.tzname[lt.tm_isdst] != "IST": + self.assertEqual(lt.tm_gmtoff, -[time.timezone, time.altzone][lt.tm_isdst]) if lt.tm_zone is None: self.assertNotHasAttr(time, "tzname") else: - self.assertEqual(lt.tm_zone, time.tzname[lt.tm_isdst]) + # IST = GMT but lt.tm_zone is GMT + if time.tzname[lt.tm_isdst] != "IST": + self.assertEqual(lt.tm_zone, time.tzname[lt.tm_isdst]) # Try and make UNIX times from the localtime and a 9-tuple # created from the localtime. Test to see that the times are From ce6815d31f4507da4993c1d73562cf476addada0 Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Sun, 15 Feb 2026 21:04:34 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../next/Build/2026-02-15-21-04-33.gh-issue-144849.-Iobsc.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Build/2026-02-15-21-04-33.gh-issue-144849.-Iobsc.rst diff --git a/Misc/NEWS.d/next/Build/2026-02-15-21-04-33.gh-issue-144849.-Iobsc.rst b/Misc/NEWS.d/next/Build/2026-02-15-21-04-33.gh-issue-144849.-Iobsc.rst new file mode 100644 index 00000000000000..e834fdff4fb4b8 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2026-02-15-21-04-33.gh-issue-144849.-Iobsc.rst @@ -0,0 +1 @@ +Some unit tests fail when ran in Europe/Dublin locale, this sidesteps that