@@ -718,9 +718,10 @@ class TestAsctime4dyear(_TestAsctimeYear, _Test4dYear, unittest.TestCase):
718
718
719
719
720
720
class TestPytime (unittest .TestCase ):
721
+ # TODO: RUSTPYTHON
722
+ @unittest .expectedFailure
721
723
@skip_if_buggy_ucrt_strfptime
722
- @unittest .skip ("TODO: RUSTPYTHON, AttributeError: module 'time' has no attribute '_STRUCT_TM_ITEMS'" )
723
- # @unittest.skipUnless(time._STRUCT_TM_ITEMS == 11, "needs tm_zone support")
724
+ @unittest .skipUnless (time ._STRUCT_TM_ITEMS == 11 , "needs tm_zone support" )
724
725
def test_localtime_timezone (self ):
725
726
726
727
# Get the localtime and examine it for the offset and zone.
@@ -755,16 +756,18 @@ def test_localtime_timezone(self):
755
756
self .assertEqual (new_lt .tm_gmtoff , lt .tm_gmtoff )
756
757
self .assertEqual (new_lt9 .tm_zone , lt .tm_zone )
757
758
758
- @unittest .skip ("TODO: RUSTPYTHON, AttributeError: module 'time' has no attribute '_STRUCT_TM_ITEMS'" )
759
- # @unittest.skipUnless(time._STRUCT_TM_ITEMS == 11, "needs tm_zone support")
759
+ # TODO: RUSTPYTHON
760
+ @unittest .expectedFailure
761
+ @unittest .skipUnless (time ._STRUCT_TM_ITEMS == 11 , "needs tm_zone support" )
760
762
def test_strptime_timezone (self ):
761
763
t = time .strptime ("UTC" , "%Z" )
762
764
self .assertEqual (t .tm_zone , 'UTC' )
763
765
t = time .strptime ("+0500" , "%z" )
764
766
self .assertEqual (t .tm_gmtoff , 5 * 3600 )
765
767
766
- @unittest .skip ("TODO: RUSTPYTHON, AttributeError: module 'time' has no attribute '_STRUCT_TM_ITEMS'" )
767
- # @unittest.skipUnless(time._STRUCT_TM_ITEMS == 11, "needs tm_zone support")
768
+ # TODO: RUSTPYTHON
769
+ @unittest .expectedFailure
770
+ @unittest .skipUnless (time ._STRUCT_TM_ITEMS == 11 , "needs tm_zone support" )
768
771
def test_short_times (self ):
769
772
770
773
import pickle
0 commit comments