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

Function tearDownModule

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

Source from the content-addressed store, hash-verified

6003 TEST_ALL = ARITH if ARITH is not None else is_resource_enabled('decimal')
6004
6005def tearDownModule():
6006 if C: C.setcontext(ORIGINAL_CONTEXT[C].copy())
6007 P.setcontext(ORIGINAL_CONTEXT[P].copy())
6008 if not C:
6009 logging.getLogger(__name__).warning(
6010 'C tests skipped: no module named _decimal.'
6011 )
6012 if not orig_sys_decimal is sys.modules['decimal']:
6013 raise TestFailed("Internal error: unbalanced number of changes to "
6014 "sys.modules['decimal'].")
6015
6016
6017ARITH = 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…