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

Method test_run_main

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

Source from the content-addressed store, hash-verified

380 self.assertEqual(err, '')
381
382 def test_run_main(self):
383 out, err = self.run_embedded_interpreter("test_run_main")
384 self.assertEqual(out.rstrip(), "Py_RunMain(): sys.argv=['-c', 'arg2']")
385 self.assertEqual(err, '')
386
387 def test_run_main_loop(self):
388 # bpo-40413: Calling Py_InitializeFromConfig()+Py_RunMain() multiple

Callers

nothing calls this directly

Calls 3

assertEqualMethod · 0.45
rstripMethod · 0.45

Tested by

no test coverage detected