|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/22697/root/usr/lib64/python2.4/test/ |
Upload File : |
mς =5Dc @ sΉ d Z d k a d k Z d k Z d k Z d k Z 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. N( s test_supporti t LockTestsc B s_ t 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 selft lock( R ( ( t. /usr/lib64/python2.4/test/test_dummy_thread.pyt setUp s c C s | i | i i d d S( Ns( Lock object is not initialized unlocked.( R t failUnlessR t locked( R ( ( R t test_initlock s c C s8 | i i | i i | i | i i d d S( Ns% Lock object did not release properly.( R R t acquiret releaseR R ( R ( ( R t test_release s c C s | i t i | i i d S( N( R t failUnlessRaisesR t errorR R ( R ( ( R t 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 ( R ( ( R t 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 ( R ( ( R t 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 ( R ( ( R t test_uncond_acquire_success5 s c C s&