(self)
| 472 | self.assertEqual(stdout.rstrip(), expected) |
| 473 | |
| 474 | def test_stdin_readline(self): |
| 475 | # Issue #11272: check that sys.stdin.readline() replaces '\r\n' by '\n' |
| 476 | # on Windows (sys.stdin is opened in binary mode) |
| 477 | self.check_input( |
| 478 | "import sys; print(repr(sys.stdin.readline()))", |
| 479 | b"'abc\\n'") |
| 480 | |
| 481 | def test_builtin_input(self): |
| 482 | # Issue #11272: check that input() strips newlines ('\n' or '\r\n') |
nothing calls this directly
no test coverage detected