ó
ŒwÛjc           @   s  d  d l  Z  d  d l Z d  d l Z d  d l Z d  d l m Z d e j f d „  ƒ  YZ d d d „  ƒ  YZ d e f d „  ƒ  YZ	 d	 e j f d
 „  ƒ  YZ
 d e
 f d „  ƒ  YZ d e
 f d „  ƒ  YZ d „  Z d „  Z e e ƒ Z d d „ Z d „  Z d „  Z e d k re ƒ  n  d S(   iÿÿÿÿN(   t   test_supportt   TestGetProfilec           B   s,   e  Z d  „  Z d „  Z d „  Z d „  Z RS(   c         C   s   t  j d  ƒ d  S(   N(   t   syst
   setprofilet   None(   t   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_sys_setprofile.pyt   setUp	   s    c         C   s   t  j d  ƒ d  S(   N(   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_sys_setprofile.pyt   tearDown   s    c         C   s   |  j  t j ƒ  ƒ d  S(   N(   t   assertIsNoneR   t
   getprofile(   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_sys_setprofile.pyt
   test_empty   s    c         C   s0   d „  } t  j | ƒ |  j t  j ƒ  | ƒ d  S(   Nc          W   s   d  S(   N(    (   t   args(    (    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_sys_setprofile.pyt   fn   s    (   R   R   t   assertIsR	   (   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_sys_setprofile.pyt   test_setget   s    	(   t   __name__t
   __module__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_sys_setprofile.pyR      s   			t   HookWatcherc           B   s/   e  Z d  „  Z d „  Z d d „ Z d „  Z RS(   c         C   s   g  |  _  g  |  _ d  S(   N(   t   framest   events(   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_sys_setprofile.pyt   __init__   s    	c         C   s;   | d k s$ | d k s$ | d k r7 |  j  | | ƒ n  d  S(   Nt   callt   returnt	   exception(   t	   add_event(   R   t   framet   eventt   arg(    (    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_sys_setprofile.pyt   callback   s    c         C   sŠ   | d k r t j d ƒ } n  y |  j j | ƒ } Wn0 t k
 rf t |  j ƒ } |  j j | ƒ n X|  j j | | t	 | ƒ f ƒ d S(   s   Add an event to the log.i   N(
   R   R   t	   _getframeR   t   indext
   ValueErrort   lent   appendR   t   ident(   R   R   R   t   frameno(    (    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_sys_setprofile.pyR   $   s    c         C   sQ   t  |  j j ƒ t  t  ƒ g } d |  _ g  |  j D] } | d | k r1 | ^ q1 S(   s   Remove calls to add_event().i   N(   R"   R   t   im_funcR   R   R   (   R   t
   disallowedt   item(    (    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_sys_setprofile.pyt
   get_events1   s    	N(   R   R   R   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_sys_setprofile.pyR      s   		t   ProfileSimulatorc           B   sn   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z i e d 6e d 6e d 6e d	 6e d
 6e d 6Z RS(   c         C   s#   | |  _  g  |  _ t j |  ƒ d  S(   N(   t   testcaset   stackR   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_sys_setprofile.pyR   :   s    		c         C   s   |  j  | |  | ƒ d  S(   N(   t   dispatch(   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_sys_setprofile.pyR   ?   s    c         C   s$   |  j  d | ƒ |  j j | ƒ d  S(   NR   (   R   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_sys_setprofile.pyt
   trace_callC   s    c         C   s!   |  j  d | ƒ |  j j ƒ  d  S(   NR   (   R   R*   t   pop(   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_sys_setprofile.pyt   trace_returnG   s    c         C   s   |  j  j d ƒ d  S(   Ns2   the profiler should never receive exception events(   R)   t   fail(   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_sys_setprofile.pyt   trace_exceptionK   s    	c         C   s   d  S(   N(    (   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_sys_setprofile.pyt
   trace_passO   s    R   R   R   t   c_callt   c_returnt   c_exception(	   R   R   R   R   R,   R.   R0   R1   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_sys_setprofile.pyR(   9   s   						t   TestCaseBasec           B   s   e  Z d  „  Z RS(   c         C   sQ   t  | |  j ƒ  ƒ } | | k rM |  j d t j | ƒ t j | ƒ f ƒ n  d  S(   Ns'   Expected events:
%s
Received events:
%s(   t   capture_eventst   new_watcherR/   t   pprintt   pformat(   R   t   callablet   expectedR   (    (    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_sys_setprofile.pyt   check_events]   s    	(   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_sys_setprofile.pyR5   \   s   t   ProfileHookTestCasec           B   s†   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z d „  Z d „  Z RS(   c         C   s   t  ƒ  S(   N(   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_sys_setprofile.pyR7   e   s    c         C   sA   d „  } t  | ƒ } |  j | d d | f d d | f g ƒ d  S(   Nc         S   s   d  S(   N(    (   t   p(    (    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_sys_setprofile.pyt   fi   s    i   R   R   (   R"   R<   (   R   R?   t   f_ident(    (    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_sys_setprofile.pyt   test_simpleh   s    	c         C   sA   d „  } t  | ƒ } |  j | d d | f d d | f g ƒ d  S(   Nc         S   s   d d d  S(   Ng      ð?i    (    (   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_sys_setprofile.pyR?   q   s    i   R   R   (   R"   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_sys_setprofile.pyt   test_exceptionp   s    	c         C   sA   d „  } t  | ƒ } |  j | d d | f d d | f g ƒ d  S(   Nc         S   s   y d d Wn n Xd  S(   Ng      ð?i    (    (   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_sys_setprofile.pyR?   y   s      i   R   R   (   R"   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_sys_setprofile.pyt   test_caught_exceptionx   s    	c         C   sA   d „  } t  | ƒ } |  j | d d | f d d | f g ƒ d  S(   Nc         S   s   y d d Wn n Xd  S(   Ng      ð?i    (    (   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_sys_setprofile.pyR?   ‚   s      i   R   R   (   R"   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_sys_setprofile.pyt   test_caught_nested_exception�   s    	c         C   sA   d „  } t  | ƒ } |  j | d d | f d d | f g ƒ d  S(   Nc         S   s   d d d  S(   Ng      ð?i    (    (   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_sys_setprofile.pyR?   ‹   s    i   R   R   (   R"   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_sys_setprofile.pyt   test_nested_exceptionŠ   s    	c      
      sŒ   d „  ‰  ‡  f d †  } t  ˆ  ƒ } t  | ƒ } |  j | d d | f d d | f d d | f d d | f d d | f d d | f g ƒ d  S(   Nc         S   s   d d d  S(   Ng      ð?i    (    (   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_sys_setprofile.pyR?   –   s    c            s4   y ˆ  |  ƒ Wn y ˆ  |  ƒ Wq0 q0 Xn Xd  S(   N(    (   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_sys_setprofile.pyt   g˜   s      i   R   i   R   i   (   R"   R<   (   R   RF   R@   t   g_ident(    (   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_sys_setprofile.pyt   test_exception_in_except_clause•   s    	c      	      s€   d „  ‰  ‡  f d †  } t  ˆ  ƒ } t  | ƒ } |  j | d d | f d d | f d d | f d d | f d d | f g ƒ d  S(   Nc         S   s   d d d  S(   Ng      ð?i    (    (   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_sys_setprofile.pyR?   ©   s    c            s#   z ˆ  |  ƒ Wd  |  j  d ƒ Xd  S(   Ns   falling through(   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_sys_setprofile.pyRF   «   s     i   R   i   R   s   falling through(   R"   R<   (   R   RF   R@   RG   (    (   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_sys_setprofile.pyt   test_exception_propagation¨   s    	c         C   sA   d „  } t  | ƒ } |  j | d d | f d d | f g ƒ d  S(   Nc         S   s"   y d d Wn d d n Xd  S(   Ng      ð?i    (    (   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_sys_setprofile.pyR?   ¸   s      i   R   R   (   R"   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_sys_setprofile.pyt   test_raise_twice·   s    	c         C   sA   d „  } t  | ƒ } |  j | d d | f d d | f g ƒ d  S(   Nc         S   s   y d d Wn
 ‚  n Xd  S(   Ng      ð?i    (    (   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_sys_setprofile.pyR?   Á   s      i   R   R   (   R"   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_sys_setprofile.pyt   test_raise_reraiseÀ   s    	c         C   sA   d „  } t  | ƒ } |  j | d d | f d d | f g ƒ d  S(   Nc         S   s   t  ƒ  ‚ d  S(   N(   t	   Exception(   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_sys_setprofile.pyR?   Ê   s    i   R   R   (   R"   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_sys_setprofile.pyt
   test_raiseÉ   s    	c            s  d „  ‰  ‡  f d †  ‰ ‡ f d †  ‰ ‡ f d †  ‰ ‡ f d †  } t  ˆ  ƒ } t  ˆ ƒ } t  ˆ ƒ } t  ˆ ƒ } t  | ƒ } |  j | d d | f d d | f d	 d | f d
 d | f d d | f d d | f d
 d | f d	 d | f d d | f d d | f g
 ƒ d  S(   Nc           S   s   d d d  S(   Ng      ð?i    (    (    (    (    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_sys_setprofile.pyR?   Ò   s    c              s   ˆ  ƒ  d  S(   N(    (    (   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_sys_setprofile.pyRF   Ô   s    c              s   ˆ  ƒ  d  S(   N(    (    (   RF   (    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_sys_setprofile.pyt   hÖ   s    c              s   ˆ  ƒ  d  S(   N(    (    (   RN   (    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_sys_setprofile.pyt   iØ   s    c            s   ˆ  ƒ  d  S(   N(    (   R>   (   RO   (    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_sys_setprofile.pyt   jÚ   s    i   R   i   i   i   i   R   (   R"   R<   (   R   RP   R@   RG   t   h_identt   i_identt   j_ident(    (   R?   RF   RN   RO   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_sys_setprofile.pyt   test_distant_exceptionÑ   s(    	c            s¤   d „  ‰  ‡  f d †  } t  ˆ  ƒ } t  | ƒ } |  j | d d | f d d | f d d | f d d | f d d | f d d | f d d | f d d | f g ƒ d  S(   Nc          s   s    x t  d ƒ D] }  |  Vq Wd  S(   Ni   (   t   range(   RO   (    (    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_sys_setprofile.pyR?   î   s    c            s   x ˆ  ƒ  D] } q
 Wd  S(   N(    (   R>   RO   (   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_sys_setprofile.pyRF   ñ   s    i   R   i   R   (   R"   R<   (   R   RF   R@   RG   (    (   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_sys_setprofile.pyt   test_generatorí   s    	c            s¤   d „  ‰  ‡  f d †  } t  ˆ  ƒ } t  | ƒ } |  j | d d | f d d | f d d | f d d | f d d | f d d | f d d | f d d | f g ƒ d  S(   Nc          s   s&   x t  d ƒ D] }  |  Vq Wt ‚ d  S(   Ni   (   RU   t   StopIteration(   RO   (    (    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_sys_setprofile.pyR?     s    	c            s   x ˆ  ƒ  D] } q
 Wd  S(   N(    (   R>   RO   (   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_sys_setprofile.pyRF     s    i   R   i   R   (   R"   R<   (   R   RF   R@   RG   (    (   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_sys_setprofile.pyt   test_stop_iteration  s    	(   R   R   R7   RA   RB   RC   RD   RE   RH   RI   RJ   RK   RM   RT   RV   RX   (    (    (    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_sys_setprofile.pyR=   d   s   																	t   ProfileSimulatorTestCasec           B   s5   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   s
   t  |  ƒ S(   N(   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_sys_setprofile.pyR7     s    c         C   sA   d „  } t  | ƒ } |  j | d d | f d d | f g ƒ d  S(   Nc         S   s   d  S(   N(    (   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_sys_setprofile.pyR?     s    i   R   R   (   R"   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_sys_setprofile.pyRA     s    	c         C   sA   d „  } t  | ƒ } |  j | d d | f d d | f g ƒ d  S(   Nc         S   s   d d d  S(   Ng      ð?i    (    (   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_sys_setprofile.pyR?   '  s    i   R   R   (   R"   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_sys_setprofile.pyt   test_basic_exception&  s    	c         C   sA   d „  } t  | ƒ } |  j | d d | f d d | f g ƒ d  S(   Nc         S   s   y d d Wn n Xd  S(   Ng      ð?i    (    (   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_sys_setprofile.pyR?   /  s      i   R   R   (   R"   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_sys_setprofile.pyRC   .  s    	c            s  d „  ‰  ‡  f d †  ‰ ‡ f d †  ‰ ‡ f d †  ‰ ‡ f d †  } t  ˆ  ƒ } t  ˆ ƒ } t  ˆ ƒ } t  ˆ ƒ } t  | ƒ } |  j | d d | f d d | f d	 d | f d
 d | f d d | f d d | f d
 d | f d	 d | f d d | f d d | f g
 ƒ d  S(   Nc           S   s   d d d  S(   Ng      ð?i    (    (    (    (    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_sys_setprofile.pyR?   8  s    c              s   ˆ  ƒ  d  S(   N(    (    (   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_sys_setprofile.pyRF   :  s    c              s   ˆ  ƒ  d  S(   N(    (    (   RF   (    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_sys_setprofile.pyRN   <  s    c              s   ˆ  ƒ  d  S(   N(    (    (   RN   (    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_sys_setprofile.pyRO   >  s    c            s   ˆ  ƒ  d  S(   N(    (   R>   (   RO   (    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_sys_setprofile.pyRP   @  s    i   R   i   i   i   i   R   (   R"   R<   (   R   RP   R@   RG   RQ   RR   RS   (    (   R?   RF   RN   RO   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_sys_setprofile.pyRT   7  s(    	(   R   R   R7   RA   RZ   RC   RT   (    (    (    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_sys_setprofile.pyRY     s
   					c         C   s4   t  |  d ƒ r |  j } n	 |  j } | j | j f S(   Nt   f_code(   t   hasattrR[   t	   func_codet   co_firstlinenot   co_name(   t   functiont   code(    (    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_sys_setprofile.pyR"   T  s    	c         C   s   y |  | ƒ Wn n Xd  S(   N(    (   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_sys_setprofile.pyt   protect\  s      c         C   s„   | d  k r t ƒ  } n  t j ƒ  } t j ƒ  z. t j | j ƒ t |  | ƒ t j d  ƒ Wd  | rr t j	 ƒ  n  X| j
 ƒ  d d !S(   Ni   iÿÿÿÿ(   R   R   t   gct	   isenabledt   disableR   R   R   Rb   t   enableR'   (   R:   R>   t   old_gc(    (    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_sys_setprofile.pyR6   c  s    
c         C   s#   d d  l  } | j  t |  ƒ ƒ d  S(   Niÿÿÿÿ(   R8   R6   (   R:   R8   (    (    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_sys_setprofile.pyt   show_eventst  s    c           C   s   t  j t t t ƒ d  S(   N(   R    t   run_unittestR   R=   RY   (    (    (    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_sys_setprofile.pyt	   test_mainy  s    t   __main__(    (   Rc   R8   R   t   unittestt   testR    t   TestCaseR   R   R(   R5   R=   RY   R"   Rb   t   protect_identR   R6   Rh   Rj   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_sys_setprofile.pyt   <module>   s$    #¶:				