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

Method test_py_rescale

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

Source from the content-addressed store, hash-verified

4942 self.assertNotEqual(id(d), id(e))
4943
4944 def test_py_rescale(self):
4945 # Coverage
4946 Decimal = P.Decimal
4947 localcontext = P.localcontext
4948
4949 with localcontext() as c:
4950 x = Decimal("NaN")._rescale(3, ROUND_UP)
4951 self.assertTrue(x.is_nan())
4952
4953 def test_py__round(self):
4954 # Coverage

Callers

nothing calls this directly

Calls 5

localcontextFunction · 0.85
DecimalClass · 0.85
assertTrueMethod · 0.80
_rescaleMethod · 0.45
is_nanMethod · 0.45

Tested by

no test coverage detected