summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2000-10-03 16:51:08 (GMT)
committerThomas Wouters <thomas@python.org>2000-10-03 16:51:08 (GMT)
commitf2c1be22f2f60aafa4ccef1e1a2e0a555f4e6a1a (patch)
tree40e1eb8ba427be18bd96d9f00a5fa77b972cb860 /Lib
parent13589c6a52d2d142f064aff91a9b0ee166c57255 (diff)
downloadcpython-f2c1be22f2f60aafa4ccef1e1a2e0a555f4e6a1a.zip
cpython-f2c1be22f2f60aafa4ccef1e1a2e0a555f4e6a1a.tar.gz
cpython-f2c1be22f2f60aafa4ccef1e1a2e0a555f4e6a1a.tar.bz2
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.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_pty.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/test/test_pty.py b/Lib/test/test_pty.py
index 295ff3c..69379b1 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"