(self)
| 210 | self.assertEqual(c.exception.returncode, 5) |
| 211 | |
| 212 | def test_check_output_stderr(self): |
| 213 | # check_output() function stderr redirected to stdout |
| 214 | output = subprocess.check_output( |
| 215 | [sys.executable, "-c", "import sys; sys.stderr.write('BDFL')"], |
| 216 | stderr=subprocess.STDOUT) |
| 217 | self.assertIn(b'BDFL', output) |
| 218 | |
| 219 | def test_check_output_stdin_arg(self): |
| 220 | # check_output() can be called with stdin set to a file |
nothing calls this directly
no test coverage detected