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

Method test_pymain_run_file_runpy_run_module

Lib/test/test_runpy.py:847–858  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

845 self.assertSigInt([self.ham])
846
847 def test_pymain_run_file_runpy_run_module(self):
848 tmp = self.ham.parent
849 run_module = tmp / "run_module.py"
850 run_module.write_text(
851 textwrap.dedent(
852 """\
853 import runpy
854 runpy.run_module("ham")
855 """
856 )
857 )
858 self.assertSigInt([run_module], cwd=tmp)
859
860 def test_pymain_run_file_runpy_run_module_as_main(self):
861 tmp = self.ham.parent

Callers

nothing calls this directly

Calls 3

assertSigIntMethod · 0.95
write_textMethod · 0.45
dedentMethod · 0.45

Tested by

no test coverage detected