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

Method test_stdout_stdout

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

Source from the content-addressed store, hash-verified

1922 self.assertIn(b'FLUFL', cp.stderr)
1923
1924 def test_stdout_stdout(self):
1925 # run() refuses to accept stdout=STDOUT
1926 with self.assertRaises(ValueError,
1927 msg=("STDOUT can only be used for stderr")):
1928 self.run_python("print('will not be run')",
1929 stdout=subprocess.STDOUT)
1930
1931 def test_stdout_with_capture_output_arg(self):
1932 # run() refuses to accept 'stdout' with 'capture_output'

Callers

nothing calls this directly

Calls 2

run_pythonMethod · 0.95
assertRaisesMethod · 0.45

Tested by

no test coverage detected