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

Method _test_wait_multiple

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

Source from the content-addressed store, hash-verified

95 return self.subprocess(code)
96
97 def _test_wait_multiple(self, wait_func):
98 num = 3
99 processes = [self.new_sleep_process() for _ in range(num)]
100 for _ in range(num):
101 wait_func()
102 # Call the Popen method to avoid a ResourceWarning
103 for proc in processes:
104 proc.wait()
105
106 def test_wait(self):
107 self._test_wait_multiple(os.wait)

Callers 2

test_waitMethod · 0.95
test_wait3Method · 0.95

Calls 2

new_sleep_processMethod · 0.95
waitMethod · 0.45

Tested by

no test coverage detected