MCPcopy Index your code
hub / github.com/RustPython/RustPython / run

Method run

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

Source from the content-addressed store, hash-verified

780
781
782 def run(self, *args, **kwargs):
783 with self.tmp_path() as tmp:
784 self.ham = ham = tmp / "ham.py"
785 ham.write_text(
786 textwrap.dedent(
787 """\
788 raise KeyboardInterrupt
789 """
790 )
791 )
792 super().run(*args, **kwargs)
793
794 @requires_subprocess()
795 def assertSigInt(self, cmd, *args, **kwargs):

Callers 1

assertSigIntMethod · 0.45

Calls 4

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

Tested by

no test coverage detected