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

Method test_inittab_submodule_singlephase

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

Source from the content-addressed store, hash-verified

262 )
263
264 def test_inittab_submodule_singlephase(self):
265 out, err = self.run_embedded_interpreter("test_inittab_submodule_singlephase")
266 self.assertEqual(self._nogil_filtered_err(err, "sp_pkg"), "")
267 self.assertEqual(out,
268 "<module 'sp_pkg.sp_submod' (built-in)>\n"
269 "<module 'sp_pkg.sp_submod' (built-in)>\n"
270 "Hello from sub-module\n"
271 )
272
273 def test_forced_io_encoding(self):
274 # Checks forced configuration of embedded interpreter IO streams

Callers

nothing calls this directly

Calls 3

_nogil_filtered_errMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected