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

Method setUp

tests/test_process.py:140–149  ·  view source on GitHub ↗

Make a valid python temp file.

(self)

Source from the content-addressed store, hash-verified

138
139class SubProcessTestCase(tt.TempFileMixin):
140 def setUp(self):
141 """Make a valid python temp file."""
142 lines = [
143 "import sys",
144 "print('on stdout', end='', file=sys.stdout)",
145 "print('on stderr', end='', file=sys.stderr)",
146 "sys.stdout.flush()",
147 "sys.stderr.flush()",
148 ]
149 self.mktmp("\n".join(lines))
150
151 def test_system(self):
152 status = system(f'{python} "{self.fname}"')

Callers

nothing calls this directly

Calls 1

mktmpMethod · 0.80

Tested by

no test coverage detected