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

Function tearDownModule

Lib/test/test_decimal.py:5988–5997  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5986 TEST_ALL = ARITH if ARITH is not None else is_resource_enabled('decimal')
5987
5988def tearDownModule():
5989 if C: C.setcontext(ORIGINAL_CONTEXT[C].copy())
5990 P.setcontext(ORIGINAL_CONTEXT[P].copy())
5991 if not C:
5992 logging.getLogger(__name__).warning(
5993 'C tests skipped: no module named _decimal.'
5994 )
5995 if not orig_sys_decimal is sys.modules['decimal']:
5996 raise TestFailed("Internal error: unbalanced number of changes to "
5997 "sys.modules['decimal'].")
5998
5999
6000ARITH = None

Callers

nothing calls this directly

Calls 4

TestFailedClass · 0.90
getLoggerMethod · 0.80
copyMethod · 0.45
warningMethod · 0.45

Tested by

no test coverage detected