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

Method run_cli_ok

Lib/test/test_calendar.py:1094–1097  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

1092 sys.stderr = orig_stderr
1093
1094 def run_cli_ok(self, *args):
1095 with self.captured_stdout_with_buffer() as stdout:
1096 calendar.main(args)
1097 return stdout.buffer.read()
1098
1099 def run_cmd_ok(self, *args):
1100 return assert_python_ok('-m', 'calendar', *args)[1]

Callers

nothing calls this directly

Calls 3

mainMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected