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

Method setUp

IPython/utils/tests/test_process.py:99–106  ·  view source on GitHub ↗

Make a valid python temp file.

(self)

Source from the content-addressed store, hash-verified

97
98class SubProcessTestCase(tt.TempFileMixin):
99 def setUp(self):
100 """Make a valid python temp file."""
101 lines = [ "import sys",
102 "print('on stdout', end='', file=sys.stdout)",
103 "print('on stderr', end='', file=sys.stderr)",
104 "sys.stdout.flush()",
105 "sys.stderr.flush()"]
106 self.mktmp('\n'.join(lines))
107
108 def test_system(self):
109 status = system('%s "%s"' % (python, self.fname))

Callers

nothing calls this directly

Calls 1

mktmpMethod · 0.80

Tested by

no test coverage detected