MCPcopy Index your code
hub / github.com/python/cpython / test_python_compat

Method test_python_compat

Lib/test/test_import/__init__.py:2457–2466  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2455
2456 @unittest.skipIf(_testinternalcapi is None, "requires _testinternalcapi")
2457 def test_python_compat(self):
2458 module = 'threading'
2459 require_pure_python(module)
2460 if not Py_GIL_DISABLED:
2461 with self.subTest(f'{module}: not strict'):
2462 self.check_compatible_here(module, strict=False)
2463 with self.subTest(f'{module}: strict, not fresh'):
2464 self.check_compatible_here(module, strict=True)
2465 with self.subTest(f'{module}: strict, fresh'):
2466 self.check_compatible_fresh(module, strict=True)
2467
2468 @requires_singlephase_init
2469 def test_singlephase_check_with_setting_and_override(self):

Callers

nothing calls this directly

Calls 4

check_compatible_hereMethod · 0.95
require_pure_pythonFunction · 0.85
subTestMethod · 0.45

Tested by

no test coverage detected