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

Method run

Lib/test/test_capi/test_run.py:43–44  ·  view source on GitHub ↗
(s, *args)

Source from the content-addressed store, hash-verified

41 # Test PyRun_StringFlags().
42 # XXX: fopen() uses different path encoding than Python on Windows.
43 def run(s, *args):
44 return _testcapi.run_stringflags(s, Py_file_input, *args)
45 source = b'a\n'
46
47 self.assertIsNone(run(b'a\n', dict(a=1)))

Callers 15

run_cmdMethod · 0.45
test_stdin_stdoutMethod · 0.45
test_jsonlinesMethod · 0.45
test_indentMethod · 0.45
test_no_indentMethod · 0.45
test_tabMethod · 0.45
test_compactMethod · 0.45
infocmpMethod · 0.45
test_setupterm_basicMethod · 0.45
test_setupterm_noneMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected