MCPcopy Index your code
hub / github.com/datacamp/pythonwhat / StubProcess

Class StubProcess

pythonwhat/local.py:29–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28
29class 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
38class TaskCaptureOutput:

Callers 2

runFunction · 0.90
run_single_processFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected