Lib/test/test_operator.py: annotate remaining failing tests
@@ -474,6 +474,7 @@ class OperatorTestCase:
self.assertEqual(operator.ixor (c, 5), "ixor")
self.assertEqual(operator.iconcat (c, c), "iadd")
+ @unittest.skip("TODO: RUSTPYTHON")
def test_length_hint(self):
operator = self.module
class X(object):
@@ -524,6 +525,8 @@ class OperatorPickleTestCase:
with support.swap_item(sys.modules, 'operator', self.module2):
return pickle.loads(pickled)
+ # TODO: RUSTPYTHON
+ @unittest.expectedFailure
def test_attrgetter(self):
attrgetter = self.module.attrgetter
class A:
@@ -552,6 +555,8 @@ class OperatorPickleTestCase:
self.assertEqual(repr(f2), repr(f))
self.assertEqual(f2(a), f(a))
+ # TODO: RUSTPYTHON
+ @unittest.expectedFailure
def test_itemgetter(self):
itemgetter = self.module.itemgetter
a = 'ABCDE'
@@ -567,6 +572,8 @@ class OperatorPickleTestCase:
self.assertEqual(repr(f2), repr(f))
self.assertEqual(f2(a), f(a))
+ # TODO: RUSTPYTHON
+ @unittest.expectedFailure
def test_methodcaller(self):
methodcaller = self.module.methodcaller
class A:
