MCPcopy Index your code
hub / github.com/python/cpython / C

Class C

Lib/test/test_operator.py:87–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85 def test_eq(self):
86 operator = self.module
87 class C(object):
88 def __eq__(self, other):
89 raise SyntaxError
90 self.assertRaises(TypeError, operator.eq)
91 self.assertRaises(SyntaxError, operator.eq, C(), C())
92 self.assertFalse(operator.eq(1, 0))

Callers 7

test_eqMethod · 0.70
test_neMethod · 0.70
test_truthMethod · 0.70
test_attrgetterMethod · 0.70
test_itemgetterMethod · 0.70
test_inplaceMethod · 0.70
test_not_Method · 0.70

Calls

no outgoing calls

Tested by 7

test_eqMethod · 0.56
test_neMethod · 0.56
test_truthMethod · 0.56
test_attrgetterMethod · 0.56
test_itemgetterMethod · 0.56
test_inplaceMethod · 0.56
test_not_Method · 0.56