MCPcopy
hub / github.com/tornadoweb/tornado / test_sigchild

Method test_sigchild

tornado/test/process_test.py:191–198  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

189 subproc.stderr.close()
190
191 def test_sigchild(self):
192 Subprocess.initialize()
193 self.addCleanup(Subprocess.uninitialize)
194 subproc = Subprocess([sys.executable, "-c", "pass"])
195 subproc.set_exit_callback(self.stop)
196 ret = self.wait()
197 self.assertEqual(ret, 0)
198 self.assertEqual(subproc.returncode, ret)
199
200 @gen_test
201 def test_sigchild_future(self):

Callers

nothing calls this directly

Calls 4

set_exit_callbackMethod · 0.95
SubprocessClass · 0.90
initializeMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected