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

Method test_is_finite

Lib/test/test_decimal.py:3263–3270  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3261 Decimal('snan'), 1.222)
3262
3263 def test_is_finite(self):
3264 Decimal = self.decimal.Decimal
3265 Context = self.decimal.Context
3266
3267 c = Context()
3268 d = c.is_finite(Decimal(10))
3269 self.assertEqual(c.is_finite(10), d)
3270 self.assertRaises(TypeError, c.is_finite, '10')
3271
3272 def test_is_infinite(self):
3273 Decimal = self.decimal.Decimal

Callers

nothing calls this directly

Calls 5

is_finiteMethod · 0.95
DecimalClass · 0.85
ContextClass · 0.70
assertEqualMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected