(*, _orig=_testsinglephase)
| 152 | |
| 153 | if _testsinglephase is not None: |
| 154 | def restore__testsinglephase(*, _orig=_testsinglephase): |
| 155 | # We started with the module imported and want to restore |
| 156 | # it to its nominal state. |
| 157 | sys.modules.pop('_testsinglephase', None) |
| 158 | _orig._clear_globals() |
| 159 | origin = _orig.__spec__.origin |
| 160 | _testinternalcapi.clear_extension('_testsinglephase', origin) |
| 161 | import _testsinglephase |
| 162 | |
| 163 | |
| 164 | def requires_singlephase_init(meth): |