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

Method test_repeated_init_and_inittab

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

Source from the content-addressed store, hash-verified

232 self.assertNotEqual(sub.modules, main.modules)
233
234 def test_repeated_init_and_inittab(self):
235 out, err = self.run_embedded_interpreter("test_repeated_init_and_inittab")
236 self.assertEqual(err, "")
237
238 lines = [f"--- Pass {i} ---" for i in range(1, INIT_LOOPS+1)]
239 lines = "\n".join(lines) + "\n"
240 self.assertEqual(out, lines)
241
242 def test_create_module_from_initfunc(self):
243 out, err = self.run_embedded_interpreter("test_create_module_from_initfunc")

Callers

nothing calls this directly

Calls 3

assertEqualMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected