From: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Date: Mon, 27 Oct 2025 15:09:25 +0000 (+0000) Subject: gh-79922: Remove always false test skips in `test_time` (#136202) X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e03d8e4f509f3588c4f13e04006266100ddec0b2;p=thirdparty%2FPython%2Fcpython.git gh-79922: Remove always false test skips in `test_time` (#136202) --- diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py index ebc25a589876..c7e81fff6f77 100644 --- a/Lib/test/test_time.py +++ b/Lib/test/test_time.py @@ -759,7 +759,6 @@ class TestStrftime4dyear(_TestStrftimeYear, _Test4dYear, unittest.TestCase): class TestPytime(unittest.TestCase): @skip_if_buggy_ucrt_strfptime - @unittest.skipUnless(time._STRUCT_TM_ITEMS == 11, "needs tm_zone support") def test_localtime_timezone(self): # Get the localtime and examine it for the offset and zone. @@ -794,14 +793,12 @@ class TestPytime(unittest.TestCase): self.assertEqual(new_lt.tm_gmtoff, lt.tm_gmtoff) self.assertEqual(new_lt9.tm_zone, lt.tm_zone) - @unittest.skipUnless(time._STRUCT_TM_ITEMS == 11, "needs tm_zone support") def test_strptime_timezone(self): t = time.strptime("UTC", "%Z") self.assertEqual(t.tm_zone, 'UTC') t = time.strptime("+0500", "%z") self.assertEqual(t.tm_gmtoff, 5 * 3600) - @unittest.skipUnless(time._STRUCT_TM_ITEMS == 11, "needs tm_zone support") def test_short_times(self): import pickle