%PDF- %PDF-
Direktori : /usr/local/lib/python2.7/test/ |
Current File : //usr/local/lib/python2.7/test/test_mutex.pyo |
ó Nêáac @ sl d d l Z d d l Z e j j d d e ƒZ d e j f d „ ƒ YZ d „ Z e d k rh e ƒ n d S( iÿÿÿÿNt mutext deprecatedt MutexTestc B s e Z d „ Z RS( c s€ ‡ ‡ ‡ f d † } ‡ ‡ ‡ f d † ‰ t j ƒ ‰ t } ˆ j | d ƒ t ‰ ˆ j ƒ ˆ j ƒ ˆ j ˆ j ƒ d ƒ d S( Nc s: ˆ j | d ƒ ˆ j ˆ j ƒ d ƒ ˆ j ˆ d ƒ d S( Nt spams mutex not heldt eggs( t assertEqualt assertTruet testt lock( t some_data( t called_by_mutex2t mt self( s+ /usr/local/lib/python2.7/test/test_mutex.pyt called_by_mutex s c s: ˆ j | d ƒ ˆ j ˆ j ƒ d ƒ ˆ j ˆ d ƒ d S( NR s mutex not helds called_by_mutex2 called too soon( R R R ( R ( R t ready_for_2R ( s+ /usr/local/lib/python2.7/test/test_mutex.pyR s R s mutex still held( R t FalseR t Truet unlockt assertFalseR ( R R t read_for_2( ( R R R R s+ /usr/local/lib/python2.7/test/test_mutex.pyt test_lock_and_unlock s ( t __name__t __module__R ( ( ( s+ /usr/local/lib/python2.7/test/test_mutex.pyR s c C s t j j t ƒ d S( N( R t test_supportt run_unittestR ( ( ( s+ /usr/local/lib/python2.7/test/test_mutex.pyt test_main s t __main__( t unittestt test.test_supportR R t import_moduleR R t TestCaseR R R ( ( ( s+ /usr/local/lib/python2.7/test/test_mutex.pyt <module> s