Lines Matching defs:pty
8 import pty
49 # Marginal testing of pty suite. Cannot do extensive 'do or fail' testing
50 # because pty code is not too portable.
70 master_fd, slave_name = pty.master_open()
74 slave_fd = pty.slave_open(slave_name)
115 debug("calling pty.fork()")
116 pid, master_fd = pty.fork()
117 if pid == pty.CHILD:
123 # After pty.fork(), the child should already be a session leader.
133 # Have pty, but not setsid()?
180 self.fail("pty.fork() failed to make child a session leader.")
182 self.fail("Child spawned by pty.fork() did not have a tty as stdout")
184 self.fail("pty.fork() failed for unknown reasons.")
196 # pty.fork() passed.
203 self.orig_stdin_fileno = pty.STDIN_FILENO
204 self.orig_stdout_fileno = pty.STDOUT_FILENO
205 self.orig_pty_select = pty.select
211 pty.STDIN_FILENO = self.orig_stdin_fileno
212 pty.STDOUT_FILENO = self.orig_stdout_fileno
213 pty.select = self.orig_pty_select
233 pty.STDOUT_FILENO = mock_stdout_fd
235 pty.STDIN_FILENO = mock_stdin_fd
245 pty.select = self._mock_select
251 pty._copy(masters[0])
262 pty.STDOUT_FILENO = mock_stdout_fd
264 pty.STDIN_FILENO = mock_stdin_fd
274 pty.select = self._mock_select
282 pty._copy(masters[0])