~/develop/python/Lib/test> python test_pty.py
test_basic (__main__.PtyTest) ... Calling master_open()
Got master_fd '3', slave_name '/dev/tt/p3'
Calling slave_open('/dev/tt/p3')
ERROR
test_fork (__main__.PtyTest) ... calling pty.fork()
Waiting for child (2043) to finish.
In child, calling os.setsid()
Good: OSError was raised.
FAIL
======================================================================
ERROR: test_basic (__main__.PtyTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_pty.py", line 72, in test_basic
raise TestSkipped, "Pseudo-terminals (seemingly) not functional."
TestSkipped: Pseudo-terminals (seemingly) not functional.
======================================================================
FAIL: test_fork (__main__.PtyTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_pty.py", line 155, in test_fork
data = os.read(master_fd, 80)
File "test_pty.py", line 59, in handle_sig
self.fail("isatty hung")
AssertionError: isatty hung
----------------------------------------------------------------------
Ran 2 tests in 10.002s
FAILED (failures=1, errors=1)
Traceback (most recent call last):
File "test_pty.py", line 196, in <module>
test_main()
File "test_pty.py", line 193, in test_main
run_unittest(PtyTest)
File "/boot/common/lib/python2.7/test/test_support.py", line 722, in run_unittest
_run_suite(suite)
File "/boot/common/lib/python2.7/test/test_support.py", line 705, in _run_suite
raise TestFailed(err)
test.test_support.TestFailed: errors occurred; run in verbose mode for details
~/develop/python/Lib/test>
