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

Method prepare_reader

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

Source from the content-addressed store, hash-verified

649
650class TestPyReplOutput(ScreenEqualMixin, TestCase):
651 def prepare_reader(self, events):
652 console = FakeConsole(events)
653 config = ReadlineConfig(readline_completer=None)
654 reader = ReadlineAlikeReader(console=console, config=config)
655 reader.can_colorize = False
656 return reader
657
658 def test_stdin_is_tty(self):
659 # Used during test log analysis to figure out if a TTY was available.

Calls 3

ReadlineConfigClass · 0.90
ReadlineAlikeReaderClass · 0.90
FakeConsoleClass · 0.85

Tested by

no test coverage detected