| | 1 | ~/develop/python/Lib/test> python test_threading.py |
| | 2 | {{{ |
| | 3 | test_PyThreadState_SetAsyncExc (__main__.ThreadTests) ... started worker thread |
| | 4 | trying nonsensical thread id |
| | 5 | waiting for worker thread to get started |
| | 6 | verifying worker hasn't exited |
| | 7 | attempting to raise asynch exception in worker |
| | 8 | waiting for worker to say it caught the exception |
| | 9 | all OK -- joining worker |
| | 10 | ok |
| | 11 | test_enumerate_after_join (__main__.ThreadTests) ... ok |
| | 12 | test_finalize_runnning_thread (__main__.ThreadTests) ... ok |
| | 13 | test_finalize_with_trace (__main__.ThreadTests) ... ok |
| | 14 | test_foreign_thread (__main__.ThreadTests) ... ok |
| | 15 | test_no_refcycle_through_target (__main__.ThreadTests) ... ok |
| | 16 | test_various_ops (__main__.ThreadTests) ... task <thread 0> will run for 1.0 usec |
| | 17 | 1 tasks are running |
| | 18 | task <thread 0> done |
| | 19 | task <thread 1> will run for 77.4 usec<thread 0> is finished. 0 tasks are running |
| | 20 | |
| | 21 | 1 tasks are running |
| | 22 | task <thread 1>task <thread 2> will run for 91.3 usec |
| | 23 | done |
| | 24 | 2 tasks are running |
| | 25 | task <thread 3> will run for 53.6 usectask<thread 1> is finished. 1 tasks are running |
| | 26 | |
| | 27 | <thread 2> 2done |
| | 28 | tasks are running |
| | 29 | <thread 2> is finished. 1 tasks are running |
| | 30 | task <thread 3> donetask <thread 4> will run for 59.4 usec |
| | 31 | |
| | 32 | <thread 3> is finished. 0 tasks are running |
| | 33 | 1 tasks are running |
| | 34 | task <thread 4>task <thread 5> will run for 74.5 usec |
| | 35 | done |
| | 36 | <thread 4> is finished. 0 tasks are running |
| | 37 | task <thread 6> will run for 98.5 usec1 |
| | 38 | tasks are running |
| | 39 | 2 tasktasks are running |
| | 40 | <thread 5> donetask <thread 7> will run for 97.9 usectask |
| | 41 | |
| | 42 | <thread 6><thread 5> is finished. 1 tasks are running |
| | 43 | done |
| | 44 | 2 tasks are running |
| | 45 | task <thread 8> will run for 75.3 usectask<thread 6> is finished. 1 tasks are running |
| | 46 | |
| | 47 | <thread 7> done2 |
| | 48 | tasks are running |
| | 49 | tasktask <thread 9> will run for 24.1 usecwaiting for all tasks to complete<thread 7> is finished. 1 tasks are running |
| | 50 | |
| | 51 | |
| | 52 | <thread 8> done |
| | 53 | 2 tasks are running |
| | 54 | <thread 8> is finished. 1 tasks are runningtask |
| | 55 | <thread 9> done |
| | 56 | <thread 9> is finished. 0 tasks are running |
| | 57 | all tasks done |
| | 58 | ok |
| | 59 | test_various_ops_large_stack (__main__.ThreadTests) ... with 1MB thread stack size... |
| | 60 | platform does not support changing thread stack size |
| | 61 | ok |
| | 62 | test_various_ops_small_stack (__main__.ThreadTests) ... with 256kB thread stack size... |
| | 63 | platform does not support changing thread stack size |
| | 64 | ok |
| | 65 | test_1_join_on_shutdown (__main__.ThreadJoinOnShutdown) ... ok |
| | 66 | test_2_join_in_forked_process (__main__.ThreadJoinOnShutdown) ... ok |
| | 67 | test_3_join_in_forked_from_thread (__main__.ThreadJoinOnShutdown) ... FAIL |
| | 68 | test_daemonize_active_thread (__main__.ThreadingExceptionTests) ... ok |
| | 69 | test_joining_current_thread (__main__.ThreadingExceptionTests) ... ok |
| | 70 | test_joining_inactive_thread (__main__.ThreadingExceptionTests) ... ok |
| | 71 | test_notify_on_unacquired_condition (__main__.ThreadingExceptionTests) ... ok |
| | 72 | test_releasing_unacquired_rlock (__main__.ThreadingExceptionTests) ... ok |
| | 73 | test_semaphore_with_negative_value (__main__.ThreadingExceptionTests) ... ok |
| | 74 | test_start_thread_again (__main__.ThreadingExceptionTests) ... ok |
| | 75 | test_waiting_on_unacquired_condition (__main__.ThreadingExceptionTests) ... ok |
| | 76 | |
| | 77 | ====================================================================== |
| | 78 | FAIL: test_3_join_in_forked_from_thread (__main__.ThreadJoinOnShutdown) |
| | 79 | ---------------------------------------------------------------------- |
| | 80 | Traceback (most recent call last): |
| | 81 | File "test_threading.py", line 406, in test_3_join_in_forked_from_thread |
| | 82 | self._run_and_join(script) |
| | 83 | File "test_threading.py", line 342, in _run_and_join |
| | 84 | self.assertEqual(data, "end of main\nend of thread\n") |
| | 85 | AssertionError: '' != 'end of main\nend of thread\n' |
| | 86 | |
| | 87 | ---------------------------------------------------------------------- |
| | 88 | Ran 20 tests in 2.326s |
| | 89 | |
| | 90 | FAILED (failures=1) |
| | 91 | Traceback (most recent call last): |
| | 92 | File "test_threading.py", line 454, in <module> |
| | 93 | test_main() |
| | 94 | File "test_threading.py", line 450, in test_main |
| | 95 | ThreadingExceptionTests, |
| | 96 | File "/boot/common/lib/python2.7/test/test_support.py", line 722, in run_unittest |
| | 97 | _run_suite(suite) |
| | 98 | File "/boot/common/lib/python2.7/test/test_support.py", line 705, in _run_suite |
| | 99 | raise TestFailed(err) |
| | 100 | test.test_support.TestFailed: Traceback (most recent call last): |
| | 101 | File "test_threading.py", line 406, in test_3_join_in_forked_from_thread |
| | 102 | self._run_and_join(script) |
| | 103 | File "test_threading.py", line 342, in _run_and_join |
| | 104 | self.assertEqual(data, "end of main\nend of thread\n") |
| | 105 | AssertionError: '' != 'end of main\nend of thread\n' |
| | 106 | |
| | 107 | ~/develop/python/Lib/test> |
| | 108 | }}} |