File: //proc/2/cwd/proc/2/root/proc/2/root/usr/lib/python2.4/test/test_dummy_thread.pyo
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/lib/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&