(self)
| 1321 | raise |
| 1322 | |
| 1323 | def close_proc_stdin(self) -> None: |
| 1324 | if self.using_pty: |
| 1325 | # there is no working scenario to tell the process that stdin |
| 1326 | # closed when using pty |
| 1327 | raise SubprocessPipeError("Cannot close stdin when pty=True") |
| 1328 | elif self.process and self.process.stdin: |
| 1329 | self.process.stdin.close() |
| 1330 | else: |
| 1331 | raise SubprocessPipeError( |
| 1332 | "Unable to close missing subprocess or stdin!" |
| 1333 | ) |
| 1334 | |
| 1335 | def start(self, command: str, shell: str, env: Dict[str, Any]) -> None: |
| 1336 | if self.using_pty: |
no test coverage detected