ó
wŰjc           @   sd   d  d l  Z  d  d l m Z d  d l Z d e  j f d     YZ d   Z e d k r` e   n  d S(   i˙˙˙˙N(   t   test_supportt   AddCallersTestCasec           B   s   e  Z d  Z d   Z RS(   s$   Tests for pstats.add_callers helper.c         C   sŚ   i d d 6} i d d 6d d
 6} t  j | |  } |  j | i d d 6d d
 6 i d d 6} i d d 6d d
 6} t  j | |  } |  j | i d d 6d d
 6 d S(   s|   pstats.add_callers should combine the call results of both target
        and source by adding the call time. See issue1269.i   i   i   i   t   ai   i   i   i   t   bN(   i   i   i   i   (   i   i   i   i   (   i   i   i   i   (   i   i   i   i   (   i   i   i   i   (   t   pstatst   add_callerst   assertEqual(   t   selft   targett   sourcet   new_callers(    (    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_pstats.pyt   test_combine_results
   s    (   t   __name__t
   __module__t   __doc__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_pstats.pyR      s   c           C   s   t  j t  d  S(   N(   R    t   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_pstats.pyt	   test_main   s    t   __main__(   t   unittestt   testR    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_pstats.pyt   <module>   s   	