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

Method run_python

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

Source from the content-addressed store, hash-verified

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