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

Method test_builtin_input

Lib/test/test_cmd_line.py:481–485  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

479 b"'abc\\n'")
480
481 def test_builtin_input(self):
482 # Issue #11272: check that input() strips newlines ('\n' or '\r\n')
483 self.check_input(
484 "print(repr(input()))",
485 b"'abc'")
486
487 def test_output_newline(self):
488 # Issue 13119 Newline for print() should be \r\n on Windows.

Callers

nothing calls this directly

Calls 1

check_inputMethod · 0.95

Tested by

no test coverage detected