MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / run_python

Function run_python

e2e/python/conftest.py:88–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86
87@pytest.fixture
88def run_python() -> Callable[[Sandbox, str], tuple[int, str, str]]:
89 def _run(sandbox: Sandbox, code: str) -> tuple[int, str, str]:
90 result = sandbox.exec(["python", "-c", code], timeout_seconds=20)
91 return result.exit_code, result.stdout, result.stderr
92
93 return _run

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected