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

Method test_capture_stderr

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

Source from the content-addressed store, hash-verified

1826 self.assertIn(b'BDFL', cp.stdout)
1827
1828 def test_capture_stderr(self):
1829 cp = self.run_python("import sys; sys.stderr.write('BDFL')",
1830 stderr=subprocess.PIPE)
1831 self.assertIn(b'BDFL', cp.stderr)
1832
1833 def test_check_output_stdin_arg(self):
1834 # 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