()
| 30 | |
| 31 | |
| 32 | def 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 | |
| 42 | def test_executor_execute(): |
nothing calls this directly
no test coverage detected