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

Method run_cli_ok

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

Source from the content-addressed store, hash-verified

963 sys.stderr = orig_stderr
964
965 def run_cli_ok(self, *args):
966 with self.captured_stdout_with_buffer() as stdout:
967 calendar.main(args)
968 return stdout.buffer.read()
969
970 def run_cmd_ok(self, *args):
971 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