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

Method test_exec

Lib/test/test_importlib/test_spec.py:244–251  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

242 # exec()
243
244 def test_exec(self):
245 self.spec.loader = NewLoader()
246 module = self.util.module_from_spec(self.spec)
247 sys.modules[self.name] = module
248 self.assertNotHasAttr(module, 'eggs')
249 self.bootstrap._exec(self.spec, module)
250
251 self.assertEqual(module.eggs, 1)
252
253 # load()
254

Callers

nothing calls this directly

Calls 4

NewLoaderClass · 0.85
assertNotHasAttrMethod · 0.80
_execMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected