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

Method test_is_infinite

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

Source from the content-addressed store, hash-verified

3275 self.assertRaises(TypeError, c.is_finite, '10')
3276
3277 def test_is_infinite(self):
3278 Decimal = self.decimal.Decimal
3279 Context = self.decimal.Context
3280
3281 c = Context()
3282 d = c.is_infinite(Decimal(10))
3283 self.assertEqual(c.is_infinite(10), d)
3284 self.assertRaises(TypeError, c.is_infinite, '10')
3285
3286 def test_is_nan(self):
3287 Decimal = self.decimal.Decimal

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected