| | 1 | ~/develop/python/Lib/test> python test_pty.py |
| | 2 | {{{ |
| | 3 | test_basic (__main__.PtyTest) ... Calling master_open() |
| | 4 | Got master_fd '3', slave_name '/dev/tt/p3' |
| | 5 | Calling slave_open('/dev/tt/p3') |
| | 6 | ERROR |
| | 7 | test_fork (__main__.PtyTest) ... calling pty.fork() |
| | 8 | Waiting for child (2043) to finish. |
| | 9 | In child, calling os.setsid() |
| | 10 | Good: OSError was raised. |
| | 11 | FAIL |
| | 12 | |
| | 13 | ====================================================================== |
| | 14 | ERROR: test_basic (__main__.PtyTest) |
| | 15 | ---------------------------------------------------------------------- |
| | 16 | Traceback (most recent call last): |
| | 17 | File "test_pty.py", line 72, in test_basic |
| | 18 | raise TestSkipped, "Pseudo-terminals (seemingly) not functional." |
| | 19 | TestSkipped: Pseudo-terminals (seemingly) not functional. |
| | 20 | |
| | 21 | ====================================================================== |
| | 22 | FAIL: test_fork (__main__.PtyTest) |
| | 23 | ---------------------------------------------------------------------- |
| | 24 | Traceback (most recent call last): |
| | 25 | File "test_pty.py", line 155, in test_fork |
| | 26 | data = os.read(master_fd, 80) |
| | 27 | File "test_pty.py", line 59, in handle_sig |
| | 28 | self.fail("isatty hung") |
| | 29 | AssertionError: isatty hung |
| | 30 | |
| | 31 | ---------------------------------------------------------------------- |
| | 32 | Ran 2 tests in 10.002s |
| | 33 | |
| | 34 | FAILED (failures=1, errors=1) |
| | 35 | Traceback (most recent call last): |
| | 36 | File "test_pty.py", line 196, in <module> |
| | 37 | test_main() |
| | 38 | File "test_pty.py", line 193, in test_main |
| | 39 | run_unittest(PtyTest) |
| | 40 | File "/boot/common/lib/python2.7/test/test_support.py", line 722, in run_unittest |
| | 41 | _run_suite(suite) |
| | 42 | File "/boot/common/lib/python2.7/test/test_support.py", line 705, in _run_suite |
| | 43 | raise TestFailed(err) |
| | 44 | test.test_support.TestFailed: errors occurred; run in verbose mode for details |
| | 45 | ~/develop/python/Lib/test> |
| | 46 | }}} |