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

Method _prepare_console

Lib/test/test_pyrepl/test_reader.py:226–232  ·  view source on GitHub ↗
(events)

Source from the content-addressed store, hash-verified

224 input_hook = MagicMock()
225
226 def _prepare_console(events):
227 console = MagicMock()
228 console.get_event.side_effect = events
229 console.height = 100
230 console.width = 80
231 console.input_hook = input_hook
232 return console
233
234 events = code_to_events("a")
235 reader, _ = handle_all_events(events, prepare_console=_prepare_console)

Callers

nothing calls this directly

Calls 1

MagicMockClass · 0.90

Tested by

no test coverage detected