MCPcopy
hub / github.com/pex-tool/pex / test_executor_open_process_communicate

Function test_executor_open_process_communicate

tests/test_executor.py:32–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30
31
32def test_executor_open_process_communicate():
33 # type: () -> None
34 process = Executor.open_process(
35 ["/bin/echo", "-n", "hello"], stdout=subprocess.PIPE, stderr=subprocess.PIPE
36 )
37 stdout, stderr = process.communicate()
38 assert stdout.decode("utf-8") == "hello"
39 assert stderr.decode("utf-8") == ""
40
41
42def test_executor_execute():

Callers

nothing calls this directly

Calls 3

communicateMethod · 0.80
decodeMethod · 0.80
open_processMethod · 0.45

Tested by

no test coverage detected