MCPcopy Create free account
hub / github.com/NVIDIA/SkillSpector / _popen

Method _popen

tests/unit/test_agent_cli.py:608–614  ·  view source on GitHub ↗
(code: str)

Source from the content-addressed store, hash-verified

606
607 @staticmethod
608 def _popen(code: str) -> subprocess.Popen:
609 return subprocess.Popen(
610 [sys.executable, "-c", code],
611 stdin=subprocess.PIPE,
612 stdout=subprocess.PIPE,
613 stderr=subprocess.PIPE,
614 )
615
616 def test_normal_roundtrip(self) -> None:
617 proc = self._popen("import sys; sys.stdout.write('ok:' + sys.stdin.read())")

Callers 3

test_normal_roundtripMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected