@@ -1498,6 +1498,8 @@ def test_strftime(self):
1498
1498
# bpo-41260: The parameter was named "fmt" in the pure python impl.
1499
1499
t .strftime (format = "%f" )
1500
1500
1501
+ # TODO: RUSTPYTHON
1502
+ @unittest .expectedFailure
1501
1503
def test_strftime_trailing_percent (self ):
1502
1504
# bpo-35066: Make sure trailing '%' doesn't cause datetime's strftime to
1503
1505
# complain. Different libcs have different handling of trailing
@@ -1598,6 +1600,8 @@ def test_pickling(self):
1598
1600
self .assertEqual (orig , derived )
1599
1601
self .assertEqual (orig .__reduce__ (), orig .__reduce_ex__ (2 ))
1600
1602
1603
+ # TODO: RUSTPYTHON
1604
+ @unittest .expectedFailure
1601
1605
def test_compat_unpickle (self ):
1602
1606
tests = [
1603
1607
b"cdatetime\n date\n (S'\\ x07\\ xdf\\ x0b\\ x1b'\n tR." ,
@@ -2365,6 +2369,8 @@ def test_pickling_subclass_datetime(self):
2365
2369
self .assertEqual (orig , derived )
2366
2370
self .assertTrue (isinstance (derived , SubclassDatetime ))
2367
2371
2372
+ # TODO: RUSTPYTHON
2373
+ @unittest .expectedFailure
2368
2374
def test_compat_unpickle (self ):
2369
2375
tests = [
2370
2376
b'cdatetime\n datetime\n ('
@@ -2937,6 +2943,8 @@ def newmeth(self, start):
2937
2943
self .assertEqual (dt2 .newmeth (- 7 ), dt1 .year + dt1 .month +
2938
2944
dt1 .second - 7 )
2939
2945
2946
+ # TODO: RUSTPYTHON
2947
+ @unittest .expectedFailure
2940
2948
def test_subclass_alternate_constructors_datetime (self ):
2941
2949
# Test that alternate constructors call the constructor
2942
2950
class DateTimeSubclass (self .theclass ):
@@ -3635,6 +3643,8 @@ def test_pickling_subclass_time(self):
3635
3643
self .assertEqual (orig , derived )
3636
3644
self .assertTrue (isinstance (derived , SubclassTime ))
3637
3645
3646
+ # TODO: RUSTPYTHON
3647
+ @unittest .expectedFailure
3638
3648
def test_compat_unpickle (self ):
3639
3649
tests = [
3640
3650
(b"cdatetime\n time\n (S'\\ x14;\\ x10\\ x00\\ x10\\ x00'\n tR." ,
@@ -4029,6 +4039,8 @@ def test_pickling(self):
4029
4039
self .assertEqual (derived .tzname (), 'cookie' )
4030
4040
self .assertEqual (orig .__reduce__ (), orig .__reduce_ex__ (2 ))
4031
4041
4042
+ # TODO: RUSTPYTHON
4043
+ @unittest .expectedFailure
4032
4044
def test_compat_unpickle (self ):
4033
4045
tests = [
4034
4046
b"cdatetime\n time\n (S'\\ x05\\ x06\\ x07\\ x01\\ xe2@'\n "
@@ -4481,6 +4493,8 @@ def test_pickling(self):
4481
4493
self .assertEqual (derived .tzname (), 'cookie' )
4482
4494
self .assertEqual (orig .__reduce__ (), orig .__reduce_ex__ (2 ))
4483
4495
4496
+ # TODO: RUSTPYTHON
4497
+ @unittest .expectedFailure
4484
4498
def test_compat_unpickle (self ):
4485
4499
tests = [
4486
4500
b'cdatetime\n datetime\n '
@@ -5443,6 +5457,8 @@ def test_bug_1028306(self):
5443
5457
self .assertEqual (as_datetime , datetime_sc )
5444
5458
self .assertEqual (datetime_sc , as_datetime )
5445
5459
5460
+ # TODO: RUSTPYTHON
5461
+ @unittest .expectedFailure
5446
5462
def test_extra_attributes (self ):
5447
5463
with self .assertWarns (DeprecationWarning ):
5448
5464
utcnow = datetime .utcnow ()
0 commit comments