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

Method test_three_argument_pow

Lib/test/test_fractions.py:1699–1709  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1697 divmod, b, a)
1698
1699 def test_three_argument_pow(self):
1700 message = "unsupported operand type(s) for ** or pow(): '%s', '%s', '%s'"
1701 self.assertRaisesMessage(TypeError,
1702 message % ("Fraction", "int", "int"),
1703 pow, F(3), 4, 5)
1704 self.assertRaisesMessage(TypeError,
1705 message % ("int", "Fraction", "int"),
1706 pow, 3, F(4), 5)
1707 self.assertRaisesMessage(TypeError,
1708 message % ("int", "int", "Fraction"),
1709 pow, 3, 4, F(5))
1710
1711
1712if __name__ == '__main__':

Callers

nothing calls this directly

Calls 2

assertRaisesMessageMethod · 0.95
FClass · 0.70

Tested by

no test coverage detected