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

Method run

Lib/test/test_runpy.py:824–834  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

822
823
824 def run(self, *args, **kwargs):
825 with self.tmp_path() as tmp:
826 self.ham = ham = tmp / "ham.py"
827 ham.write_text(
828 textwrap.dedent(
829 """\
830 raise KeyboardInterrupt
831 """
832 )
833 )
834 super().run(*args, **kwargs)
835
836 @requires_subprocess()
837 def assertSigInt(self, cmd, *args, **kwargs):

Callers 1

assertSigIntMethod · 0.45

Calls 4

tmp_pathMethod · 0.95
superClass · 0.85
write_textMethod · 0.45
dedentMethod · 0.45

Tested by

no test coverage detected