# Test to see if openpty works. (But don't worry if it isn't available.)
from test
.test_support
import verbose
, TestFailed
, TestSkipped
print "Calling os.openpty()"
master
, slave
= os
.openpty()
print "(master, slave) = (%d, %d)"%(master
, slave
)
raise TestSkipped
, "No openpty() available."
raise TestFailed
, "Slave-end of pty is not a terminal."
print os
.read(master
, 1024)