(self)
| 348 | self.assertEqual(out.rstrip(), b'test_stdout_none') |
| 349 | |
| 350 | def test_stderr_none(self): |
| 351 | # .stderr is None when not redirected |
| 352 | p = subprocess.Popen([sys.executable, "-c", 'print("banana")'], |
| 353 | stdin=subprocess.PIPE, stdout=subprocess.PIPE) |
| 354 | self.addCleanup(p.stdout.close) |
| 355 | self.addCleanup(p.stdin.close) |
| 356 | p.wait() |
| 357 | self.assertEqual(p.stderr, None) |
| 358 | |
| 359 | def _assert_python(self, pre_args, **kwargs): |
| 360 | # We include sys.exit() to prevent the test runner from hanging |
nothing calls this directly
no test coverage detected