()
| 6003 | TEST_ALL = ARITH if ARITH is not None else is_resource_enabled('decimal') |
| 6004 | |
| 6005 | def 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 | |
| 6017 | ARITH = None |
nothing calls this directly
no test coverage detected
searching dependent graphs…