MCPcopy Index your code
hub / github.com/python/cpython / test_shell

Method test_shell

Lib/test/test_asyncio/test_subprocess.py:210–215  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

208 self.assertEqual(stdout, b'')
209
210 def test_shell(self):
211 proc = self.loop.run_until_complete(
212 asyncio.create_subprocess_shell('exit 7')
213 )
214 exitcode = self.loop.run_until_complete(proc.wait())
215 self.assertEqual(exitcode, 7)
216
217 def test_start_new_session(self):
218 # start the new process in a new session

Callers

nothing calls this directly

Calls 3

run_until_completeMethod · 0.45
waitMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected