(self)
| 2343 | |
| 2344 | @unittest.skipIf(_testinternalcapi is None, "requires _testinternalcapi") |
| 2345 | def test_builtin_compat(self): |
| 2346 | # For now we avoid using sys or builtins |
| 2347 | # since they still don't implement multi-phase init. |
| 2348 | module = '_imp' |
| 2349 | require_builtin(module) |
| 2350 | if not Py_GIL_DISABLED: |
| 2351 | with self.subTest(f'{module}: not strict'): |
| 2352 | self.check_compatible_here(module, strict=False) |
| 2353 | with self.subTest(f'{module}: strict, not fresh'): |
| 2354 | self.check_compatible_here(module, strict=True) |
| 2355 | |
| 2356 | @cpython_only |
| 2357 | @unittest.skipIf(_testinternalcapi is None, "requires _testinternalcapi") |
nothing calls this directly
no test coverage detected