MCPcopy Index your code
hub / github.com/python/cpython / test_check_output_stderr

Method test_check_output_stderr

Lib/test/test_subprocess.py:212–217  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

assertInMethod · 0.80
check_outputMethod · 0.45

Tested by

no test coverage detected