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

Method test_getoutput

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

Source from the content-addressed store, hash-verified

201 )
202
203 def test_getoutput(self):
204 out = getoutput(f'{python} "{self.fname}"')
205 # we can't rely on the order the line buffered streams are flushed
206 try:
207 self.assertEqual(out, "on stderron stdout")
208 except AssertionError:
209 self.assertEqual(out, "on stdouton stderr")
210
211 def test_getoutput_quoted(self):
212 out = getoutput('%s -c "print (1)"' % python)

Callers

nothing calls this directly

Calls 1

getoutputFunction · 0.90

Tested by

no test coverage detected