MCPcopy Create free account
hub / github.com/RustPython/RustPython / A

Class A

Lib/test/test_statistics.py:3251–3253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3249
3250 # Test NotImplemented when types are different
3251 class A:
3252 def __eq__(self, other):
3253 return 10
3254 a = A()
3255 self.assertEqual(nd1.__eq__(a), NotImplemented)
3256 self.assertEqual(nd1 == a, 10)

Callers 1

test_equalityMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_equalityMethod · 0.56