HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • ← Previous Change
  • Wiki History
  • Next Change →

Changes between Initial Version and Version 1 of PythonRegressionTests_threading


Ignore:
Timestamp:
01/30/09 22:11:56 (6 years ago)
Author:
scottmc
Comment:

test_threading.py output

Legend:

Unmodified
Added
Removed
Modified
  • PythonRegressionTests_threading

    v1 v1  
     1~/develop/python/Lib/test> python test_threading.py 
     2{{{ 
     3test_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 
     10ok 
     11test_enumerate_after_join (__main__.ThreadTests) ... ok 
     12test_finalize_runnning_thread (__main__.ThreadTests) ... ok 
     13test_finalize_with_trace (__main__.ThreadTests) ... ok 
     14test_foreign_thread (__main__.ThreadTests) ... ok 
     15test_no_refcycle_through_target (__main__.ThreadTests) ... ok 
     16test_various_ops (__main__.ThreadTests) ... task <thread 0> will run for 1.0 usec 
     171 tasks are running 
     18task <thread 0> done 
     19task <thread 1> will run for 77.4 usec<thread 0> is finished. 0 tasks are running 
     20 
     211 tasks are running 
     22task <thread 1>task <thread 2> will run for 91.3 usec  
     23done 
     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  
     28tasks 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 
     331 tasks are running 
     34task <thread 4>task <thread 5> will run for 74.5 usec  
     35done 
     36<thread 4> is finished. 0 tasks are running 
     37task <thread 6> will run for 98.5 usec1 
     38 tasks are running 
     392 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  
     43done  
     442 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 
     49tasktask <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 
     57all tasks done 
     58ok 
     59test_various_ops_large_stack (__main__.ThreadTests) ... with 1MB thread stack size... 
     60platform does not support changing thread stack size 
     61ok 
     62test_various_ops_small_stack (__main__.ThreadTests) ... with 256kB thread stack size... 
     63platform does not support changing thread stack size 
     64ok 
     65test_1_join_on_shutdown (__main__.ThreadJoinOnShutdown) ... ok 
     66test_2_join_in_forked_process (__main__.ThreadJoinOnShutdown) ... ok 
     67test_3_join_in_forked_from_thread (__main__.ThreadJoinOnShutdown) ... FAIL 
     68test_daemonize_active_thread (__main__.ThreadingExceptionTests) ... ok 
     69test_joining_current_thread (__main__.ThreadingExceptionTests) ... ok 
     70test_joining_inactive_thread (__main__.ThreadingExceptionTests) ... ok 
     71test_notify_on_unacquired_condition (__main__.ThreadingExceptionTests) ... ok 
     72test_releasing_unacquired_rlock (__main__.ThreadingExceptionTests) ... ok 
     73test_semaphore_with_negative_value (__main__.ThreadingExceptionTests) ... ok 
     74test_start_thread_again (__main__.ThreadingExceptionTests) ... ok 
     75test_waiting_on_unacquired_condition (__main__.ThreadingExceptionTests) ... ok 
     76 
     77====================================================================== 
     78FAIL: test_3_join_in_forked_from_thread (__main__.ThreadJoinOnShutdown) 
     79---------------------------------------------------------------------- 
     80Traceback (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") 
     85AssertionError: '' != 'end of main\nend of thread\n' 
     86 
     87---------------------------------------------------------------------- 
     88Ran 20 tests in 2.326s 
     89 
     90FAILED (failures=1) 
     91Traceback (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) 
     100test.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") 
     105AssertionError: '' != 'end of main\nend of thread\n' 
     106 
     107~/develop/python/Lib/test>  
     108}}} 

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/