(self, wait_func)
| 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) |
no test coverage detected