(self)
| 316 | self.assertEqual(s.getvalue(), '') |
| 317 | |
| 318 | def test_stdin_none(self): |
| 319 | # .stdin is None when not redirected |
| 320 | p = subprocess.Popen([sys.executable, "-c", 'print("banana")'], |
| 321 | stdout=subprocess.PIPE, stderr=subprocess.PIPE) |
| 322 | self.addCleanup(p.stdout.close) |
| 323 | self.addCleanup(p.stderr.close) |
| 324 | p.wait() |
| 325 | self.assertEqual(p.stdin, None) |
| 326 | |
| 327 | def test_stdout_none(self): |
| 328 | # .stdout is None when not redirected, and the child's stdout will |
nothing calls this directly
no test coverage detected