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

Method _test_wait_single

Lib/test/_test_eintr.py:113–117  ·  view source on GitHub ↗
(self, wait_func)

Source from the content-addressed store, hash-verified

111 self._test_wait_multiple(lambda: os.wait3(0))
112
113 def _test_wait_single(self, wait_func):
114 proc = self.new_sleep_process()
115 wait_func(proc.pid)
116 # Call the Popen method to avoid a ResourceWarning
117 proc.wait()
118
119 def test_waitpid(self):
120 self._test_wait_single(lambda pid: os.waitpid(pid, 0))

Callers 2

test_waitpidMethod · 0.95
test_wait4Method · 0.95

Calls 2

new_sleep_processMethod · 0.95
waitMethod · 0.45

Tested by

no test coverage detected