Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/test/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/test/test_dummy_thread.pyo |
³ò h”Rc @ sË d Z d d k a d d k Z d d k Z d d k Z d d k Z d d k l Z d a d e i f d „ ƒ YZ d e i f d „ ƒ YZ d e i f d „ ƒ YZ d d „ Z e d j o e ƒ n d S( sÕ Generic thread tests. Meant to be used by dummy_thread and thread. To allow for different modules to be used, test_main() can be called with the module to use as the thread implementation as its sole argument. iÿÿÿÿN( t test_supporti t LockTestsc B s_ e Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( s Test lock objects.c C s t i ƒ | _ d S( N( t _threadt allocate_lockt lock( t self( ( s2 /usr/local/lib/python2.5/test/test_dummy_thread.pyt setUp s c C s | i | i i ƒ d ƒ d S( Ns( Lock object is not initialized unlocked.( t failUnlessR t locked( R ( ( s2 /usr/local/lib/python2.5/test/test_dummy_thread.pyt test_initlock s c C s8 | i i ƒ | i i ƒ | i | i i ƒ d ƒ d S( Ns% Lock object did not release properly.( R t acquiret releaseR R ( R ( ( s2 /usr/local/lib/python2.5/test/test_dummy_thread.pyt test_release s c C s | i t i | i i ƒ d S( N( t failUnlessRaisesR t errorR R ( R ( ( s2 /usr/local/lib/python2.5/test/test_dummy_thread.pyt test_improper_release% s c C s | i | i i d ƒ d ƒ d S( Ni s) Conditional acquiring of the lock failed.( R R R ( R ( ( s2 /usr/local/lib/python2.5/test/test_dummy_thread.pyt test_cond_acquire_success) s c C s1 | i i d ƒ | i | i i d ƒ d ƒ d S( Ni s= Conditional acquiring of a locked lock incorrectly succeeded.( R R R ( R ( ( s2 /usr/local/lib/python2.5/test/test_dummy_thread.pyt test_cond_acquire_fail. s c C s* | i i ƒ | i | i i ƒ d ƒ d S( Ns Uncondional locking failed.( R R R R ( R ( ( s2 /usr/local/lib/python2.5/test/test_dummy_thread.pyt test_uncond_acquire_success5 s c C sB | i | i i d ƒ t j d ƒ | i | i i ƒ t j ƒ d S( Ni s* Unconditional locking did not return True.( R R R t True( R ( ( s2 /usr/local/lib/python2.5/test/test_dummy_thread.pyt test_uncond_acquire_return_val; s c C s© d „ } | i i ƒ t t i ƒ ƒ } t i | | i t f ƒ t i o Hd t GHn | i i ƒ t t i ƒ ƒ } t i o d GHn | i | | t j d ƒ d S( Nc S s t i | ƒ | i ƒ d S( s: Hold on to lock for a set amount of time before unlocking.N( t timet sleepR ( t to_unlockt delay( ( s2 /usr/local/lib/python2.5/test/test_dummy_thread.pyt delay_unlockC s s@ *** Waiting for thread to release the lock (approx. %s sec.) ***t dones+ Blocking by unconditional acquiring failed.( R R t intR R t start_new_threadt DELAYR t verboseR ( R R t start_timet end_time( ( s2 /usr/local/lib/python2.5/test/test_dummy_thread.pyt test_uncond_acquire_blockingA s ( t __name__t __module__t __doc__R R R R R R R R R! ( ( ( s2 /usr/local/lib/python2.5/test/test_dummy_thread.pyR s t MiscTestsc B s; e Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( s Miscellaneous tests.c C s | i t t i ƒ d S( N( R t SystemExitR t exit( R ( ( s2 /usr/local/lib/python2.5/test/test_dummy_thread.pyt test_exitY s c C s? | i t t i ƒ t ƒ d ƒ | i t i ƒ d j d ƒ d S( Ns* _thread.get_ident() returned a non-integeri s _thread.get_ident() returned 0( R t isinstanceR t get_identR ( R ( ( s2 /usr/local/lib/python2.5/test/test_dummy_thread.pyt test_ident] s c C s&