MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_no_ipow

Method test_no_ipow

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

Source from the content-addressed store, hash-verified

4034 self.assertEqual(c, 2)
4035
4036 def test_no_ipow(self):
4037 class B:
4038 def __rpow__(self, other):
4039 return 1
4040
4041 a = object()
4042 b = B()
4043 a **= b
4044 self.assertEqual(a, 1)
4045
4046 def test_ipow_exception_text(self):
4047 x = None

Callers

nothing calls this directly

Calls 2

BClass · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected