Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
test
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/test/test_queue.pyc
mς =5Dc @ sΓ d k Z d k Z d k Z d k Z d k l Z l Z l Z d Z d e i f d YZ d Z d Z d e f d YZ d e i f d YZ d Z d Z d Z e d S( N( s verifys TestFaileds verbosei t _TriggerThreadc B s t Z d Z d Z RS( Nc C s5 | | _ | | _ t i | _ t i i | d S( N( t fnt selft argst threadingt Eventt startedEventt Threadt __init__( R R R ( ( t% /usr/lib/python2.4/test/test_queue.pyR s c C s. t i d | i i | i | i d S( Nf0.10000000000000001( t timet sleepR R t setR R ( R ( ( R t run s ( t __name__t __module__R R ( ( ( R R s c C s{ t | | } | i | | } | i i p t d | n | i d | i o t d | n | S( Ns, blocking function '%r' appeared not to blocki s, trigger function '%r' appeared to not return( R t trigger_funct trigger_argst tt startt block_funct block_argst resultR t isSett TestFailedt joint isAlive( R R R R R R ( ( R t _doBlockingTest+ s c C sͺ t | | } | i z; y | | Wn | j o n Xt d | Wd | i d | i o t d | n | i i p t d n Xd S( Ns expected exception of kind %ri s, trigger function '%r' appeared to not returns( trigger thread ended but event never set( R R R R R R R t expected_exception_classR R R R R ( R R R R R R ( ( R t _doExceptionalBlockingTest: s t FailingQueueExceptionc B s t Z RS( N( R R ( ( ( R R O s t FailingQueuec B s# t Z d Z d Z d Z RS( Nc G s) t | _ t | _ t i i | | d S( N( t FalseR t fail_next_putt fail_next_gett QueueR R ( R R ( ( R R S s c C s3 | i o t | _ t d n t i i | | S( Ns You Lose( R R! R R R# t _putt item( R R% ( ( R R$ W s c C s0 | i o t | _ t d n t i i | S( Ns You Lose( R R"