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

Method run_python

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

Source from the content-addressed store, hash-verified

846 return proc
847
848 def run_python(self, args, isolated=True, **kw):
849 extraargs = []
850 if 'uops' in sys._xoptions:
851 # Pass -X uops along
852 extraargs.extend(['-X', 'uops'])
853 cmd = [sys.executable, *extraargs, '-X', 'faulthandler']
854 if isolated:
855 cmd.append('-I')
856 cmd.extend(args)
857 proc = self.run_command(cmd, **kw)
858 return proc.stdout
859
860
861class 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