MCPcopy Index your code
hub / github.com/ipython/ipython / test_getoutput_error

Method test_getoutput_error

tests/test_process.py:223–226  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

221 self.assertEqual(out.strip(), "1")
222
223 def test_getoutput_error(self):
224 out, err = getoutputerror(f'{python} "{self.fname}"')
225 self.assertEqual(out, "on stdout")
226 self.assertEqual(err, "on stderr")
227
228 def test_get_output_error_code(self):
229 quiet_exit = '%s -c "import sys; sys.exit(1)"' % python

Callers

nothing calls this directly

Calls 1

getoutputerrorFunction · 0.90

Tested by

no test coverage detected