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

Method prepare_reader

Lib/test/test_pyrepl/test_pyrepl.py:476–480  ·  view source on GitHub ↗
(self, events)

Source from the content-addressed store, hash-verified

474
475class TestPyReplAutoindent(TestCase):
476 def prepare_reader(self, events):
477 console = FakeConsole(events)
478 config = ReadlineConfig(readline_completer=None)
479 reader = ReadlineAlikeReader(console=console, config=config)
480 return reader
481
482 def test_auto_indent_default(self):
483 # fmt: off

Calls 3

ReadlineConfigClass · 0.90
ReadlineAlikeReaderClass · 0.90
FakeConsoleClass · 0.85

Tested by

no test coverage detected