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

Method test_basic

Lib/test/test_pyrepl/test_pyrepl.py:678–683  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

676 self.skipTest("stdout is not a tty")
677
678 def test_basic(self):
679 reader = self.prepare_reader(code_to_events("1+1\n"))
680
681 output = multiline_input(reader)
682 self.assertEqual(output, "1+1")
683 self.assert_screen_equal(reader, "1+1", clean=True)
684
685 def test_get_line_buffer_returns_str(self):
686 reader = self.prepare_reader(code_to_events("\n"))

Callers

nothing calls this directly

Calls 5

prepare_readerMethod · 0.95
code_to_eventsFunction · 0.85
multiline_inputFunction · 0.85
assert_screen_equalMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected