Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f2c1be2

Browse files
committed
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.
1 parent 13589c6 commit f2c1be2

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

Lib/test/test_pty.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ def debug(msg):
2727
# " An optional feature could not be imported " ... ?
2828
raise TestSkipped, "Pseudo-terminals (seemingly) not functional."
2929

30-
if not os.isatty(master_fd):
31-
raise TestFailed, "master_fd is not a tty"
3230
if not os.isatty(slave_fd):
3331
raise TestFailed, "slave_fd is not a tty"
3432

0 commit comments

Comments
 (0)