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

Method test_frozen_compat

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

Source from the content-addressed store, hash-verified

2356 @cpython_only
2357 @unittest.skipIf(_testinternalcapi is None, "requires _testinternalcapi")
2358 def test_frozen_compat(self):
2359 module = '_frozen_importlib'
2360 require_frozen(module, skip=True)
2361 if __import__(module).__spec__.origin != 'frozen':
2362 raise unittest.SkipTest(f'{module} is unexpectedly not frozen')
2363 if not Py_GIL_DISABLED:
2364 with self.subTest(f'{module}: not strict'):
2365 self.check_compatible_here(module, strict=False)
2366 with self.subTest(f'{module}: strict, not fresh'):
2367 self.check_compatible_here(module, strict=True)
2368
2369 @requires_singlephase_init
2370 def test_single_init_extension_compat(self):

Callers

nothing calls this directly

Calls 4

check_compatible_hereMethod · 0.95
require_frozenFunction · 0.85
__import__Function · 0.85
subTestMethod · 0.45

Tested by

no test coverage detected