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

Method test_capture_stderr

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

Source from the content-addressed store, hash-verified

1828 self.assertIn(b'BDFL', cp.stdout)
1829
1830 def test_capture_stderr(self):
1831 cp = self.run_python("import sys; sys.stderr.write('BDFL')",
1832 stderr=subprocess.PIPE)
1833 self.assertIn(b'BDFL', cp.stderr)
1834
1835 def test_check_output_stdin_arg(self):
1836 # run() can be called with stdin set to a file

Callers

nothing calls this directly

Calls 2

run_pythonMethod · 0.95
assertInMethod · 0.80

Tested by

no test coverage detected