(self)
| 203 | subprocess.check_output([], check=False) |
| 204 | |
| 205 | def test_check_output_nonzero(self): |
| 206 | # check_call() function with non-zero return code |
| 207 | with self.assertRaises(subprocess.CalledProcessError) as c: |
| 208 | subprocess.check_output( |
| 209 | [sys.executable, "-c", "import sys; sys.exit(5)"]) |
| 210 | self.assertEqual(c.exception.returncode, 5) |
| 211 | |
| 212 | def test_check_output_stderr(self): |
| 213 | # check_output() function stderr redirected to stdout |
nothing calls this directly
no test coverage detected