mς
­fIc           @   sΊ   d  Z  d k Z d k Z d k l Z l Z d a d   Z d   Z d   Z	 d   Z
 d   Z d	   Z d
   Z d f  d     YZ d   Z d   Z d   Z e d j o e   n d S(   s"   Test suite for the profile module.N(   s   TESTFNs   vereqi    c          C   s<   d a  t i t  }  |  i d t   t    |  i   d  S(   Ni    s
   testfunc()(   t   tickst   profilet   Profilet   timert   proft   runctxt   globalst   print_stats(   R   (    (    t.   /mit/python/lib/python2.4/test/test_profile.pyt   test_1   s
     c           C   s   t  d S(   Nf0.001(   R    (    (    (    R   R      s    c           C   s&   t  d 7a  t   t   t  d 7a  d  S(   NiΗ   iΙ   (   R    t   helper(    (    (    R   t   testfunc   s
     
c           C   st   t  d 7a  t   t  d 7a  t   t  d 7a  t   t  d 7a  t   t  d 7a  t   t  d 7a  t   t  d 7a  d  S(   Ni   i   i   i   i   i   i   (   R    t   helper1t   helper2(    (    (    R   R
       s     





c           C   s(   t  d 7a  t t   d  t  d 7a  d  S(   Ni
   t   fooi   (   R    t   hasattrt   C(    (    (    R   R   2   s     
c           C   s9   t  d 7a  t t   d  t  d 7a  t   t  d 7a  d  S(   Ni   t   bari   i   (   R    R   R   t	   subhelper(    (    (    R   R   :   s     

c          C   sS   t  d 7a  xB t d  D]4 }  y t   i Wq t j
 o t  d 7a  q Xq Wd  S(   Ni   i   (   R    t   ranget   iR   R   t   AttributeError(   R   (    (    R   R   D   s     
 R   c           B   s   t  Z d   Z RS(   Nc         C   s   t  d 7a  t  d  S(   Ni   (   R    R   (   t   selft   name(    (    R   t   __getattr__P   s     
(   t   __name__t
   __module__R   (    (    (    R   R   O   s   c          C   sV   t    i   }  d   } | |  d <t i d |  |  t  t t d  t	 i
 t  d  S(   Nc           C   s
   d a  d  S(   Ni   (   t   x(    (    (    R   R   Z   s     R   s
   testfunc()i   (   R   t   copyt   dR   R   R   t   TESTFNt   vereqR   t   ost   unlink(   R   R   (    (    R   t   test_2X   s    	
c             s^   g      d     d   } t i d t   t   t  t   t t g  t	 i
 t  d  S(   Nc              sA   y t  d   Wn n Xy t  d   Wn n X  i t  d  S(   N(   t   lent   Nonet   resultt   appendt   True(    (   R%   (    R   t	   testfunc1d   s        c              s           d  S(   N(   R(   (    (   R(   (    R   t	   testfunc2j   s    s   testfunc2()(   R%   R(   R)   R   R   t   localsR   R   R'   R    R!   (   R%   R)   R(   (    (   R%   R(   R   t   test_3b   s    c           C   s   t    t   t   d  S(   N(   R	   R"   R+   (    (    (    R   t	   test_mainq   s    t   __main__(   t   __doc__R   R    t   test.test_supportR   R   R    R	   R   R   R
   R   R   R   R   R"   R+   R,   R   (   R   R,   R   R   R   R
   R   R+   R   R	   R   R    R"   R   R   (    (    R   t   ?   s"   									
			
		