From: Thomas Wouters Date: Tue, 3 Oct 2000 16:51:08 +0000 (+0000) Subject: On some systems (like Solaris), the master end of a tty/pty pair is X-Git-Tag: v2.0c1~142 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f2c1be22f2f60aafa4ccef1e1a2e0a555f4e6a1a;p=python On some systems (like Solaris), the master end of a tty/pty pair is 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. --- diff --git a/Lib/test/test_pty.py b/Lib/test/test_pty.py index 295ff3c3af..69379b122c 100644 --- a/Lib/test/test_pty.py +++ b/Lib/test/test_pty.py @@ -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"