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

Method run_python

Lib/test/test_audit.py:41–50  ·  view source on GitHub ↗
(self, *args, expect_stderr=False)

Source from the content-addressed store, hash-verified

39 self.fail(stderr)
40
41 def run_python(self, *args, expect_stderr=False):
42 events = []
43 proc, stdout, stderr = self.run_test_in_subprocess(*args)
44 if not expect_stderr or support.verbose:
45 sys.stderr.write(stderr)
46 return (
47 proc.returncode,
48 [line.strip().partition(" ") for line in stdout.splitlines()],
49 stderr,
50 )
51
52 def test_basic(self):
53 self.do_test("test_basic")

Callers 15

test_excepthookMethod · 0.95
test_unraisablehookMethod · 0.95
test_winregMethod · 0.95
test_socketMethod · 0.95
test_gcMethod · 0.95
test_httpMethod · 0.95
test_sqlite3Method · 0.95
test_sys_getframeMethod · 0.95
test_threadingMethod · 0.95
test_wmi_exec_queryMethod · 0.95
test_syslogMethod · 0.95

Calls 5

writeMethod · 0.45
partitionMethod · 0.45
stripMethod · 0.45
splitlinesMethod · 0.45

Tested by

no test coverage detected