Lines Matching refs:pty
8 import pty
84 master_fd, slave_name = pty.master_open()
88 slave_fd = pty.slave_open(slave_name)
130 pid, master_fd = pty.fork()
131 if pid == pty.CHILD:
217 self.orig_stdin_fileno = pty.STDIN_FILENO
218 self.orig_stdout_fileno = pty.STDOUT_FILENO
219 self.orig_pty_select = pty.select
225 pty.STDIN_FILENO = self.orig_stdin_fileno
226 pty.STDOUT_FILENO = self.orig_stdout_fileno
227 pty.select = self.orig_pty_select
247 pty.STDOUT_FILENO = mock_stdout_fd
249 pty.STDIN_FILENO = mock_stdin_fd
259 pty.select = self._mock_select
265 pty._copy(masters[0])
276 pty.STDOUT_FILENO = mock_stdout_fd
278 pty.STDIN_FILENO = mock_stdin_fd
288 pty.select = self._mock_select
296 pty._copy(masters[0])