ó
‹wÛjc           @   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…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/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…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/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…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mutex.pyt   test_lock_and_unlock   s    

(   t   __name__t
   __module__R   (    (    (    s…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/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…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/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…   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_mutex.pyt   <module>   s   	