| 27 | |
| 28 | |
| 29 | class StubProcess: |
| 30 | def __init__(self, init_code=None, pid=None): |
| 31 | self.shell = StubShell(init_code) |
| 32 | self._identity = (pid,) if pid else (random.randint(0, int(1e12)),) |
| 33 | |
| 34 | def executeTask(self, task): |
| 35 | return task(self.shell) |
| 36 | |
| 37 | |
| 38 | class TaskCaptureOutput: |
no outgoing calls
no test coverage detected