]> granicus.if.org Git - python/commitdiff
On some systems (like Solaris), the master end of a tty/pty pair is
authorThomas Wouters <thomas@python.org>
Tue, 3 Oct 2000 16:51:08 +0000 (16:51 +0000)
committerThomas Wouters <thomas@python.org>
Tue, 3 Oct 2000 16:51:08 +0000 (16:51 +0000)
apparently not considered a terminal, and so isatty(3) returns false. So we
skip the test for ttyness of the master side and just check the slave side,
which should really be a terminal.

Lib/test/test_pty.py

index 295ff3c3afc826be90aa19a759785a3368cc5f6c..69379b122c8111032b7beffb02dafcb130639ef3 100644 (file)
@@ -27,8 +27,6 @@ except OSError:
     # " An optional feature could not be imported " ... ?
     raise TestSkipped, "Pseudo-terminals (seemingly) not functional."
 
-if not os.isatty(master_fd):
-    raise TestFailed, "master_fd is not a tty"
 if not os.isatty(slave_fd):
     raise TestFailed, "slave_fd is not a tty"