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

Method exec_module

Lib/test/test_importlib/test_lazy.py:54–58  ·  view source on GitHub ↗
(self, module)

Source from the content-addressed store, hash-verified

52 return util.spec_from_loader(name, util.LazyLoader(self))
53
54 def exec_module(self, module):
55 time.sleep(0.01) # Simulate a slow load.
56 exec(self.source_code, module.__dict__)
57 self.loaded = module
58 self.load_count += 1
59
60
61class LazyLoaderTests(unittest.TestCase):

Callers

nothing calls this directly

Calls 1

sleepMethod · 0.45

Tested by

no test coverage detected