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

Method test_run_module

Lib/test/test_pdb.py:4127–4134  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4125 self.assertEqual(stdout.getvalue(), header + '\n')
4126
4127 def test_run_module(self):
4128 script = """print("SUCCESS")"""
4129 commands = """
4130 continue
4131 quit
4132 """
4133 stdout, stderr = self.run_pdb_module(script, commands)
4134 self.assertTrue(any("SUCCESS" in l for l in stdout.splitlines()), stdout)
4135
4136 def test_module_is_run_as_main(self):
4137 script = """

Callers

nothing calls this directly

Calls 4

run_pdb_moduleMethod · 0.95
assertTrueMethod · 0.80
anyFunction · 0.50
splitlinesMethod · 0.45

Tested by

no test coverage detected