@@ -281,6 +281,8 @@ def test_equality(self):
281
281
# different length implied inequality
282
282
self .assertNotEqual (od1 , OrderedDict (pairs [:- 1 ]))
283
283
284
+ # TODO: RUSTPYTHON
285
+ @unittest .expectedFailure
284
286
def test_copying (self ):
285
287
OrderedDict = self .OrderedDict
286
288
# Check that ordered dicts are copyable, deepcopyable, picklable,
@@ -324,6 +326,8 @@ def check(dup):
324
326
check (update_test )
325
327
check (OrderedDict (od ))
326
328
329
+ @unittest .expectedFailure
330
+ # TODO: RUSTPYTHON
327
331
def test_yaml_linkage (self ):
328
332
OrderedDict = self .OrderedDict
329
333
# Verify that __reduce__ is setup in a way that supports PyYAML's dump() feature.
@@ -334,6 +338,8 @@ def test_yaml_linkage(self):
334
338
# '!!python/object/apply:__main__.OrderedDict\n- - [a, 1]\n - [b, 2]\n'
335
339
self .assertTrue (all (type (pair )== list for pair in od .__reduce__ ()[1 ]))
336
340
341
+ # TODO: RUSTPYTHON
342
+ @unittest .expectedFailure
337
343
def test_reduce_not_too_fat (self ):
338
344
OrderedDict = self .OrderedDict
339
345
# do not save instance dictionary if not needed
@@ -345,6 +351,8 @@ def test_reduce_not_too_fat(self):
345
351
self .assertEqual (od .__dict__ ['x' ], 10 )
346
352
self .assertEqual (od .__reduce__ ()[2 ], {'x' : 10 })
347
353
354
+ # TODO: RUSTPYTHON
355
+ @unittest .expectedFailure
348
356
def test_pickle_recursive (self ):
349
357
OrderedDict = self .OrderedDict
350
358
od = OrderedDict ()
@@ -1011,7 +1019,7 @@ class PySimpleLRUCacheTests(SimpleLRUCacheTests, unittest.TestCase):
1011
1019
class type2test (SimpleLRUCache , py_coll .OrderedDict ):
1012
1020
pass
1013
1021
1014
- @ unittest . skip ( "TODO: RUSTPYTHON" )
1022
+
1015
1023
@unittest .skipUnless (c_coll , 'requires the C version of the collections module' )
1016
1024
class CSimpleLRUCacheTests (SimpleLRUCacheTests , unittest .TestCase ):
1017
1025
0 commit comments