@@ -196,6 +196,8 @@ def test_normal(self):
196
196
self .assertEqual (fo .tzname (dt ), "Three" )
197
197
self .assertEqual (fo .dst (dt ), timedelta (minutes = 42 ))
198
198
199
+ # TODO: RUSTPYTHON
200
+ @unittest .expectedFailure
199
201
def test_pickling_base (self ):
200
202
# There's no point to pickling tzinfo objects on their own (they
201
203
# carry no data), but they need to be picklable anyway else
@@ -207,6 +209,8 @@ def test_pickling_base(self):
207
209
derived = unpickler .loads (green )
208
210
self .assertIs (type (derived ), tzinfo )
209
211
212
+ # TODO: RUSTPYTHON
213
+ @unittest .expectedFailure
210
214
def test_pickling_subclass (self ):
211
215
# Make sure we can pickle/unpickle an instance of a subclass.
212
216
offset = timedelta (minutes = - 300 )
@@ -385,6 +389,8 @@ def test_aware_datetime(self):
385
389
self .assertEqual (tz .dst (t ),
386
390
t .replace (tzinfo = tz ).dst ())
387
391
392
+ # TODO: RUSTPYTHON
393
+ @unittest .expectedFailure
388
394
def test_pickle (self ):
389
395
for tz in self .ACDT , self .EST , timezone .min , timezone .max :
390
396
for pickler , unpickler , proto in pickle_choices :
@@ -395,6 +401,8 @@ def test_pickle(self):
395
401
tz_copy = unpickler .loads (pickler .dumps (tz , proto ))
396
402
self .assertIs (tz_copy , tz )
397
403
404
+ # TODO: RUSTPYTHON
405
+ @unittest .expectedFailure
398
406
def test_copy (self ):
399
407
for tz in self .ACDT , self .EST , timezone .min , timezone .max :
400
408
tz_copy = copy .copy (tz )
@@ -403,6 +411,8 @@ def test_copy(self):
403
411
tz_copy = copy .copy (tz )
404
412
self .assertIs (tz_copy , tz )
405
413
414
+ # TODO: RUSTPYTHON
415
+ @unittest .expectedFailure
406
416
def test_deepcopy (self ):
407
417
for tz in self .ACDT , self .EST , timezone .min , timezone .max :
408
418
tz_copy = copy .deepcopy (tz )
@@ -1498,6 +1508,8 @@ def test_strftime(self):
1498
1508
# bpo-41260: The parameter was named "fmt" in the pure python impl.
1499
1509
t .strftime (format = "%f" )
1500
1510
1511
+ # TODO: RUSTPYTHON
1512
+ @unittest .expectedFailure
1501
1513
def test_strftime_trailing_percent (self ):
1502
1514
# bpo-35066: Make sure trailing '%' doesn't cause datetime's strftime to
1503
1515
# complain. Different libcs have different handling of trailing
@@ -1598,6 +1610,8 @@ def test_pickling(self):
1598
1610
self .assertEqual (orig , derived )
1599
1611
self .assertEqual (orig .__reduce__ (), orig .__reduce_ex__ (2 ))
1600
1612
1613
+ # TODO: RUSTPYTHON
1614
+ @unittest .expectedFailure
1601
1615
def test_compat_unpickle (self ):
1602
1616
tests = [
1603
1617
b"cdatetime\n date\n (S'\\ x07\\ xdf\\ x0b\\ x1b'\n tR." ,
@@ -2365,6 +2379,8 @@ def test_pickling_subclass_datetime(self):
2365
2379
self .assertEqual (orig , derived )
2366
2380
self .assertTrue (isinstance (derived , SubclassDatetime ))
2367
2381
2382
+ # TODO: RUSTPYTHON
2383
+ @unittest .expectedFailure
2368
2384
def test_compat_unpickle (self ):
2369
2385
tests = [
2370
2386
b'cdatetime\n datetime\n ('
@@ -2937,6 +2953,8 @@ def newmeth(self, start):
2937
2953
self .assertEqual (dt2 .newmeth (- 7 ), dt1 .year + dt1 .month +
2938
2954
dt1 .second - 7 )
2939
2955
2956
+ # TODO: RUSTPYTHON
2957
+ @unittest .expectedFailure
2940
2958
def test_subclass_alternate_constructors_datetime (self ):
2941
2959
# Test that alternate constructors call the constructor
2942
2960
class DateTimeSubclass (self .theclass ):
@@ -3635,6 +3653,8 @@ def test_pickling_subclass_time(self):
3635
3653
self .assertEqual (orig , derived )
3636
3654
self .assertTrue (isinstance (derived , SubclassTime ))
3637
3655
3656
+ # TODO: RUSTPYTHON
3657
+ @unittest .expectedFailure
3638
3658
def test_compat_unpickle (self ):
3639
3659
tests = [
3640
3660
(b"cdatetime\n time\n (S'\\ x14;\\ x10\\ x00\\ x10\\ x00'\n tR." ,
@@ -4007,6 +4027,8 @@ def test_hash_edge_cases(self):
4007
4027
t2 = self .theclass (23 , 48 , 6 , 100 , tzinfo = FixedOffset (- 1010 , "" ))
4008
4028
self .assertEqual (hash (t1 ), hash (t2 ))
4009
4029
4030
+ # TODO: RUSTPYTHON
403
A3DB
1
+ @unittest .expectedFailure
4010
4032
def test_pickling (self ):
4011
4033
# Try one without a tzinfo.
4012
4034
args = 20 , 59 , 16 , 64 ** 2
@@ -4029,6 +4051,8 @@ def test_pickling(self):
4029
4051
self .assertEqual (derived .tzname (), 'cookie' )
4030
4052
self .assertEqual (orig .__reduce__ (), orig .__reduce_ex__ (2 ))
4031
4053
4054
+ # TODO: RUSTPYTHON
4055
+ @unittest .expectedFailure
4032
4056
def test_compat_unpickle (self ):
4033
4057
tests = [
4034
4058
b"cdatetime\n time\n (S'\\ x05\\ x06\\ x07\\ x01\\ xe2@'\n "
@@ -4458,6 +4482,8 @@ def utcoffset(self, dt):
4458
4482
t2 = self .theclass (2 , 2 , 2 , tzinfo = FixedOffset (0 , "" ))
4459
4483
self .assertRaises (ValueError , lambda : t1 == t2 )
4460
4484
4485
+ # TODO: RUSTPYTHON
4486
+ @unittest .expectedFailure
4461
4487
def test_pickling (self ):
4462
4488
# Try one without a tzinfo.
4463
4489
args = 6 , 7 , 23 , 20 , 59 , 1 , 64 ** 2
@@ -4481,6 +4507,8 @@ def test_pickling(self):
4481
4507
self .assertEqual (derived .tzname (), 'cookie' )
4482
4508
self .assertEqual (orig .__reduce__ (), orig .__reduce_ex__ (2 ))
4483
4509
4510
+ # TODO: RUSTPYTHON
4511
+ @unittest .expectedFailure
4484
4512
def test_compat_unpickle (self ):
4485
4513
tests = [
4486
4514
b'cdatetime\n datetime\n '
@@ -5443,6 +5471,8 @@ def test_bug_1028306(self):
5443
5471
self .assertEqual (as_datetime , datetime_sc )
5444
5472
self .assertEqual (datetime_sc , as_datetime )
5445
5473
5474
+ # TODO: RUSTPYTHON
5475
+ @unittest .expectedFailure
5446
5476
def test_extra_attributes (self ):
5447
5477
with self .assertWarns (DeprecationWarning ):
5448
5478
utcnow = datetime .utcnow ()
0 commit comments