Skip to content

Commit e03d8e4

Browse files
pythongh-79922: Remove always false test skips in test_time (python#136202)
1 parent 9479a62 commit e03d8e4

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Lib/test/test_time.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,6 @@ class TestStrftime4dyear(_TestStrftimeYear, _Test4dYear, unittest.TestCase):
759759

760760
class TestPytime(unittest.TestCase):
761761
@skip_if_buggy_ucrt_strfptime
762-
@unittest.skipUnless(time._STRUCT_TM_ITEMS == 11, "needs tm_zone support")
763762
def test_localtime_timezone(self):
764763

765764
# Get the localtime and examine it for the offset and zone.
@@ -794,14 +793,12 @@ def test_localtime_timezone(self):
794793
self.assertEqual(new_lt.tm_gmtoff, lt.tm_gmtoff)
795794
self.assertEqual(new_lt9.tm_zone, lt.tm_zone)
796795

797-
@unittest.skipUnless(time._STRUCT_TM_ITEMS == 11, "needs tm_zone support")
798796
def test_strptime_timezone(self):
799797
t = time.strptime("UTC", "%Z")
800798
self.assertEqual(t.tm_zone, 'UTC')
801799
t = time.strptime("+0500", "%z")
802800
self.assertEqual(t.tm_gmtoff, 5 * 3600)
803801

804-
@unittest.skipUnless(time._STRUCT_TM_ITEMS == 11, "needs tm_zone support")
805802
def test_short_times(self):
806803

807804
import pickle

0 commit comments

Comments
 (0)