~/develop/python/Lib/test> python test_threading.py
test_PyThreadState_SetAsyncExc (__main__.ThreadTests) ... started worker thread
trying nonsensical thread id
waiting for worker thread to get started
verifying worker hasn't exited
attempting to raise asynch exception in worker
waiting for worker to say it caught the exception
all OK -- joining worker
ok
test_enumerate_after_join (__main__.ThreadTests) ... ok
test_finalize_runnning_thread (__main__.ThreadTests) ... ok
test_finalize_with_trace (__main__.ThreadTests) ... ok
test_foreign_thread (__main__.ThreadTests) ... ok
test_no_refcycle_through_target (__main__.ThreadTests) ... ok
test_various_ops (__main__.ThreadTests) ... task <thread 0> will run for 1.0 usec
1 tasks are running
task <thread 0> done
task <thread 1> will run for 77.4 usec<thread 0> is finished. 0 tasks are running
1 tasks are running
task <thread 1>task <thread 2> will run for 91.3 usec
done
2 tasks are running
task <thread 3> will run for 53.6 usectask<thread 1> is finished. 1 tasks are running
<thread 2> 2done
tasks are running
<thread 2> is finished. 1 tasks are running
task <thread 3> donetask <thread 4> will run for 59.4 usec
<thread 3> is finished. 0 tasks are running
1 tasks are running
task <thread 4>task <thread 5> will run for 74.5 usec
done
<thread 4> is finished. 0 tasks are running
task <thread 6> will run for 98.5 usec1
tasks are running
2 tasktasks are running
<thread 5> donetask <thread 7> will run for 97.9 usectask
<thread 6><thread 5> is finished. 1 tasks are running
done
2 tasks are running
task <thread 8> will run for 75.3 usectask<thread 6> is finished. 1 tasks are running
<thread 7> done2
tasks are running
tasktask <thread 9> will run for 24.1 usecwaiting for all tasks to complete<thread 7> is finished. 1 tasks are running
<thread 8> done
2 tasks are running
<thread 8> is finished. 1 tasks are runningtask
<thread 9> done
<thread 9> is finished. 0 tasks are running
all tasks done
ok
test_various_ops_large_stack (__main__.ThreadTests) ... with 1MB thread stack size...
platform does not support changing thread stack size
ok
test_various_ops_small_stack (__main__.ThreadTests) ... with 256kB thread stack size...
platform does not support changing thread stack size
ok
test_1_join_on_shutdown (__main__.ThreadJoinOnShutdown) ... ok
test_2_join_in_forked_process (__main__.ThreadJoinOnShutdown) ... ok
test_3_join_in_forked_from_thread (__main__.ThreadJoinOnShutdown) ... FAIL
test_daemonize_active_thread (__main__.ThreadingExceptionTests) ... ok
test_joining_current_thread (__main__.ThreadingExceptionTests) ... ok
test_joining_inactive_thread (__main__.ThreadingExceptionTests) ... ok
test_notify_on_unacquired_condition (__main__.ThreadingExceptionTests) ... ok
test_releasing_unacquired_rlock (__main__.ThreadingExceptionTests) ... ok
test_semaphore_with_negative_value (__main__.ThreadingExceptionTests) ... ok
test_start_thread_again (__main__.ThreadingExceptionTests) ... ok
test_waiting_on_unacquired_condition (__main__.ThreadingExceptionTests) ... ok
======================================================================
FAIL: test_3_join_in_forked_from_thread (__main__.ThreadJoinOnShutdown)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_threading.py", line 406, in test_3_join_in_forked_from_thread
self._run_and_join(script)
File "test_threading.py", line 342, in _run_and_join
self.assertEqual(data, "end of main\nend of thread\n")
AssertionError: '' != 'end of main\nend of thread\n'
----------------------------------------------------------------------
Ran 20 tests in 2.326s
FAILED (failures=1)
Traceback (most recent call last):
File "test_threading.py", line 454, in <module>
test_main()
File "test_threading.py", line 450, in test_main
ThreadingExceptionTests,
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: Traceback (most recent call last):
File "test_threading.py", line 406, in test_3_join_in_forked_from_thread
self._run_and_join(script)
File "test_threading.py", line 342, in _run_and_join
self.assertEqual(data, "end of main\nend of thread\n")
AssertionError: '' != 'end of main\nend of thread\n'
~/develop/python/Lib/test>
