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

Method test_no_ipow

Lib/test/test_descr.py:4122–4130  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4120 self.assertEqual(c, 2)
4121
4122 def test_no_ipow(self):
4123 class B:
4124 def __rpow__(self, other):
4125 return 1
4126
4127 a = object()
4128 b = B()
4129 a **= b
4130 self.assertEqual(a, 1)
4131
4132 def test_ipow_exception_text(self):
4133 x = None

Callers

nothing calls this directly

Calls 2

BClass · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected