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

Method test_inittab_submodule_multiphase

Lib/test/test_embed.py:253–262  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

251 )
252
253 def test_inittab_submodule_multiphase(self):
254 out, err = self.run_embedded_interpreter("test_inittab_submodule_multiphase")
255 self.assertEqual(err, "")
256 self.assertEqual(out,
257 "<module 'mp_pkg.mp_submod' (built-in)>\n"
258 "<module 'mp_pkg.mp_submod' (built-in)>\n"
259 "Hello from sub-module\n"
260 "mp_pkg.mp_submod.mp_submod_exec_slot_ran='yes'\n"
261 "mp_pkg.mp_pkg_exec_slot_ran='yes'\n"
262 )
263
264 def test_inittab_submodule_singlephase(self):
265 out, err = self.run_embedded_interpreter("test_inittab_submodule_singlephase")

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.45

Tested by

no test coverage detected