mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
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.
This commit is contained in:
parent
13589c6a52
commit
f2c1be22f2
1 changed files with 0 additions and 2 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue