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

Method test_pymain_run_command_run_module

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

Source from the content-addressed store, hash-verified

871 self.assertSigInt([run_module_as_main], cwd=tmp)
872
873 def test_pymain_run_command_run_module(self):
874 self.assertSigInt(
875 ["-c", "import runpy; runpy.run_module('ham')"],
876 cwd=self.ham.parent,
877 )
878
879 def test_pymain_run_command(self):
880 self.assertSigInt(["-c", "import ham"], cwd=self.ham.parent)

Callers

nothing calls this directly

Calls 1

assertSigIntMethod · 0.95

Tested by

no test coverage detected