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

Method run_python

Lib/test/test_regrtest.py:810–820  ·  view source on GitHub ↗
(self, args, isolated=True, **kw)

Source from the content-addressed store, hash-verified

808 return proc
809
810 def run_python(self, args, isolated=True, **kw):
811 extraargs = []
812 if 'uops' in sys._xoptions:
813 # Pass -X uops along
814 extraargs.extend(['-X', 'uops'])
815 cmd = [sys.executable, *extraargs, '-X', 'faulthandler']
816 if isolated:
817 cmd.append('-I')
818 cmd.extend(args)
819 proc = self.run_command(cmd, **kw)
820 return proc.stdout
821
822
823class CheckActualTests(BaseTestCase):

Callers 5

run_testsMethod · 0.45
run_testsMethod · 0.45
test_cleanupMethod · 0.45
test_unload_testsMethod · 0.45

Calls 3

run_commandMethod · 0.95
extendMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected