summaryrefslogtreecommitdiff
path: root/Lib/test/test_openpty.py
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2000-07-19 14:51:54 +0000
committerThomas Wouters <thomas@python.org>2000-07-19 14:51:54 +0000
commit655be844eaae3c17b3c370bb4a3c7f8a6edd31fa (patch)
treea9661c428b8af09d08538d995b93a13a1565520c /Lib/test/test_openpty.py
parentdc2dc123d8ed3da83800e5baa596f2474baa153f (diff)
downloadcpython-655be844eaae3c17b3c370bb4a3c7f8a6edd31fa.tar.gz
Enable extra testing now that os.isatty() is in. (Also tests os.isatty ;P)
Diffstat (limited to 'Lib/test/test_openpty.py')
-rw-r--r--Lib/test/test_openpty.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/Lib/test/test_openpty.py b/Lib/test/test_openpty.py
index cd939c69b4..1202845d9a 100644
--- a/Lib/test/test_openpty.py
+++ b/Lib/test/test_openpty.py
@@ -12,11 +12,10 @@ try:
except AttributeError:
raise ImportError, "No openpty() available."
-## # Please uncomment these if os.isatty() is added.
-## if not os.isatty(master):
-## raise TestFailed, "Master-end of pty is not a terminal."
-## if not os.isatty(slave):
-## raise TestFailed, "Slave-end of pty is not a terminal."
+if not os.isatty(master):
+ raise TestFailed, "Master-end of pty is not a terminal."
+if not os.isatty(slave):
+ raise TestFailed, "Slave-end of pty is not a terminal."
os.write(slave, 'Ping!')
print os.read(master, 1024)