(self)
| 161 | |
| 162 | @gen_test |
| 163 | def test_close_stdin(self): |
| 164 | # Close the parent's stdin handle and see that the child recognizes it. |
| 165 | subproc = Subprocess( |
| 166 | [sys.executable, "-u", "-i", "-I"], |
| 167 | stdin=Subprocess.STREAM, |
| 168 | stdout=Subprocess.STREAM, |
| 169 | stderr=subprocess.STDOUT, |
| 170 | ) |
| 171 | self.addCleanup(lambda: self.term_and_wait(subproc)) |
| 172 | yield subproc.stdout.read_until(b">>> ") |
| 173 | subproc.stdin.close() |
| 174 | data = yield subproc.stdout.read_until_close() |
| 175 | self.assertEqual(data, b"\n") |
| 176 | |
| 177 | @gen_test |
| 178 | def test_stderr(self): |
nothing calls this directly
no test coverage detected