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

Method test_explicit_reverse_methods

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

Source from the content-addressed store, hash-verified

301 self.assertEqual(a.prec, 12)
302
303 def test_explicit_reverse_methods(self):
304 # see issue 9930
305 self.assertEqual(complex.__radd__(3j, 4.0), complex(4.0, 3.0))
306 self.assertEqual(float.__rsub__(3.0, 1), -2.0)
307
308 @support.impl_detail("the module 'xxsubtype' is internal")
309 @unittest.skipIf(xxsubtype is None, "requires xxsubtype module")

Callers

nothing calls this directly

Calls 3

assertEqualMethod · 0.45
__radd__Method · 0.45
__rsub__Method · 0.45

Tested by

no test coverage detected