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

Method run_python

Lib/test/test_interpreters/utils.py:459–465  ·  view source on GitHub ↗
(self, *argv)

Source from the content-addressed store, hash-verified

457
458 @support.requires_subprocess()
459 def run_python(self, *argv):
460 proc = subprocess.run(
461 [sys.executable, *argv],
462 capture_output=True,
463 text=True,
464 )
465 return proc.returncode, proc.stdout, proc.stderr
466
467 def assert_python_ok(self, *argv):
468 exitcode, stdout, stderr = self.run_python(*argv)

Callers 2

assert_python_okMethod · 0.95
assert_python_failureMethod · 0.95

Calls 1

runMethod · 0.45

Tested by

no test coverage detected