(self)
| 171 | |
| 172 | @gen_test |
| 173 | def test_close_stdin(self): |
| 174 | # Close the parent's stdin handle and see that the child recognizes it. |
| 175 | subproc = Subprocess( |
| 176 | [sys.executable, "-u", "-i"], |
| 177 | stdin=Subprocess.STREAM, |
| 178 | stdout=Subprocess.STREAM, |
| 179 | stderr=subprocess.STDOUT, |
| 180 | ) |
| 181 | self.addCleanup(lambda: self.term_and_wait(subproc)) |
| 182 | yield subproc.stdout.read_until(b">>> ") |
| 183 | subproc.stdin.close() |
| 184 | data = yield subproc.stdout.read_until_close() |
| 185 | self.assertEqual(data, b"\n") |
| 186 | |
| 187 | @gen_test |
| 188 | def test_stderr(self): |
nothing calls this directly
no test coverage detected