| 60 | |
| 61 | |
| 62 | def _patch_global_state(debug, verbose): |
| 63 | # patch xdoctest global_state |
| 64 | from xdoctest import global_state |
| 65 | |
| 66 | _debug_xdoctest = debug and verbose > 2 |
| 67 | global_state.DEBUG = _debug_xdoctest |
| 68 | global_state.DEBUG_PARSER = global_state.DEBUG_PARSER and _debug_xdoctest |
| 69 | global_state.DEBUG_CORE = global_state.DEBUG_CORE and _debug_xdoctest |
| 70 | global_state.DEBUG_RUNNER = global_state.DEBUG_RUNNER and _debug_xdoctest |
| 71 | global_state.DEBUG_DOCTEST = global_state.DEBUG_DOCTEST and _debug_xdoctest |
| 72 | |
| 73 | |
| 74 | def _patch_tensor_place(): |