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

Function init

Lib/test/test_decimal.py:110–115  ·  view source on GitHub ↗
(m)

Source from the content-addressed store, hash-verified

108 P: P.getcontext().copy()
109}
110def init(m):
111 if not m: return
112 DefaultTestContext = m.Context(
113 prec=9, rounding=ROUND_HALF_EVEN, traps=dict.fromkeys(Signals[m], 0)
114 )
115 m.setcontext(DefaultTestContext)
116
117TESTDATADIR = 'decimaltestdata'
118if __name__ == '__main__':

Callers 2

setUpFunction · 0.70
setUpModuleFunction · 0.70

Calls 1

fromkeysMethod · 0.45

Tested by

no test coverage detected