(self)
| 531 | executable=sys.executable) |
| 532 | |
| 533 | def test_stdin_pipe(self): |
| 534 | # stdin redirection |
| 535 | p = subprocess.Popen([sys.executable, "-c", |
| 536 | 'import sys; sys.exit(sys.stdin.read() == "pear")'], |
| 537 | stdin=subprocess.PIPE) |
| 538 | p.stdin.write(b"pear") |
| 539 | p.stdin.close() |
| 540 | p.wait() |
| 541 | self.assertEqual(p.returncode, 1) |
| 542 | |
| 543 | def test_stdin_filedes(self): |
| 544 | # stdin is set to open file descriptor |
nothing calls this directly
no test coverage detected