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

Method test_implicit_context

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

Source from the content-addressed store, hash-verified

2305 self.assertIs(x.y, None)
2306
2307 def test_implicit_context(self):
2308 Decimal = self.decimal.Decimal
2309 getcontext = self.decimal.getcontext
2310
2311 # Check results when context given implicitly. (Issue 2478)
2312 c = getcontext()
2313 self.assertEqual(str(Decimal(0).sqrt()),
2314 str(c.sqrt(Decimal(0))))
2315
2316 def test_none_args(self):
2317 Decimal = self.decimal.Decimal

Callers

nothing calls this directly

Calls 5

getcontextFunction · 0.85
strFunction · 0.85
DecimalClass · 0.85
assertEqualMethod · 0.45
sqrtMethod · 0.45

Tested by

no test coverage detected