MCPcopy Index your code
hub / github.com/RustPython/RustPython / send_signal

Method send_signal

Lib/test/test_asyncio/test_subprocess.py:266–273  ·  view source on GitHub ↗
(proc)

Source from the content-addressed store, hash-verified

264 )
265
266 async def send_signal(proc):
267 # basic synchronization to wait until the program is sleeping
268 line = await proc.stdout.readline()
269 self.assertEqual(line, b'sleeping\n')
270
271 proc.send_signal(signal.SIGHUP)
272 returncode = await proc.wait()
273 return returncode
274
275 returncode = self.loop.run_until_complete(send_signal(proc))
276 self.assertEqual(-signal.SIGHUP, returncode)

Callers 4

_test_readingMethod · 0.45
test_kill_issue43884Method · 0.45
mainMethod · 0.45

Calls 3

readlineMethod · 0.45
assertEqualMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected