Skip to content

Commit c03d3a5

Browse files
Phosphorescenttyouknowone
authored andcommitted
Removed RustPython specific @unittest.skip()
Added extra `unittest.expectedFailure` decorators
1 parent 32aa993 commit c03d3a5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Lib/test/test_ordered_dict.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,8 @@ def test_equality(self):
281281
# different length implied inequality
282282
self.assertNotEqual(od1, OrderedDict(pairs[:-1]))
283283

284+
# TODO: RUSTPYTHON
285+
@unittest.expectedFailure
284286
def test_copying(self):
285287
OrderedDict = self.OrderedDict
286288
# Check that ordered dicts are copyable, deepcopyable, picklable,
@@ -324,6 +326,8 @@ def check(dup):
324326
check(update_test)
325327
check(OrderedDict(od))
326328

329+
@unittest.expectedFailure
330+
# TODO: RUSTPYTHON
327331
def test_yaml_linkage(self):
328332
OrderedDict = self.OrderedDict
329333
# Verify that __reduce__ is setup in a way that supports PyYAML's dump() feature.
@@ -334,6 +338,8 @@ def test_yaml_linkage(self):
334338
# '!!python/object/apply:__main__.OrderedDict\n- - [a, 1]\n - [b, 2]\n'
335339
self.assertTrue(all(type(pair)==list for pair in od.__reduce__()[1]))
336340

341+
# TODO: RUSTPYTHON
342+
@unittest.expectedFailure
337343
def test_reduce_not_too_fat(self):
338344
OrderedDict = self.OrderedDict
339345
# do not save instance dictionary if not needed
@@ -345,6 +351,8 @@ def test_reduce_not_too_fat(self):
345351
self.assertEqual(od.__dict__['x'], 10)
346352
self.assertEqual(od.__reduce__()[2], {'x': 10})
347353

354+
# TODO: RUSTPYTHON
355+
@unittest.expectedFailure
348356
def test_pickle_recursive(self):
349357
OrderedDict = self.OrderedDict
350358
od = OrderedDict()
@@ -1011,7 +1019,7 @@ class PySimpleLRUCacheTests(SimpleLRUCacheTests, unittest.TestCase):
10111019
class type2test(SimpleLRUCache, py_coll.OrderedDict):
10121020
pass
10131021

1014-
@unittest.skip("TODO: RUSTPYTHON")
1022+
10151023
@unittest.skipUnless(c_coll, 'requires the C version of the collections module')
10161024
class CSimpleLRUCacheTests(SimpleLRUCacheTests, unittest.TestCase):
10171025

0 commit comments

Comments
 (0)