MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_stdout_stdout

Method test_stdout_stdout

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

Source from the content-addressed store, hash-verified

1920 self.assertIn(b'FLUFL', cp.stderr)
1921
1922 def test_stdout_stdout(self):
1923 # run() refuses to accept stdout=STDOUT
1924 with self.assertRaises(ValueError,
1925 msg=("STDOUT can only be used for stderr")):
1926 self.run_python("print('will not be run')",
1927 stdout=subprocess.STDOUT)
1928
1929 def test_stdout_with_capture_output_arg(self):
1930 # 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