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