MCPcopy Create free account
hub / github.com/ipython/ipython / test_getoutput

Method test_getoutput

IPython/utils/tests/test_process.py:159–165  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

157 )
158
159 def test_getoutput(self):
160 out = getoutput('%s "%s"' % (python, self.fname))
161 # we can't rely on the order the line buffered streams are flushed
162 try:
163 self.assertEqual(out, 'on stderron stdout')
164 except AssertionError:
165 self.assertEqual(out, 'on stdouton stderr')
166
167 def test_getoutput_quoted(self):
168 out = getoutput('%s -c "print (1)"' % python)

Callers

nothing calls this directly

Calls 1

getoutputFunction · 0.90

Tested by

no test coverage detected