mò
­fIc           @   s‰  d  k  Z  d  k Z d  k Z d  k Z d  k Z d  k Z d k l Z d d Z d e i	 f d „  ƒ  YZ
 e  i i e  i i e  i i f Z d f  d „  ƒ  YZ d \ Z Z d \ Z Z g  Z e e d ƒ e d d ƒ ƒ D] \ Z Z e e e f qÕ [ Z e d e d	 d !e o n e e Z Z y	 e GHWn d	 Z n Xe d	 7Z z e e 7Z Wd  d Z Xd k Td „  Z e d j o e ƒ  n d  S(   N(   s   randomi   i<   t   CompilerTestc           B   s,   t  Z d „  Z d „  Z d „  Z d „  Z RS(   Nc   	   	   C   s}  t  i  ƒ  t } t i i t i ƒ } t i i t	 i
 i ƒ } x9| | g D]+} x"t i | ƒ D]} | t  i  ƒ  j o. t  i  ƒ  t } t i d IJt i i ƒ  n | i d ƒ p q` n t o t ƒ  d j  o q` n t i i | | ƒ } t	 i
 i o d G| GHn t | d ƒ } | i ƒ  } | i ƒ  d | j o  |  i t t i  | | d ƒ q` t i  | | d ƒ q` WqJ Wd  S(   Ns1     testCompileLibrary still working, be patient...s   .pyf0.97999999999999998t	   compilingt   Ut	   badsyntaxt   exec(!   t   timet   _PRINT_WORKING_MSG_INTERVALt	   next_timet   ost   patht   dirnamet   unittestt   __file__t   libdirt   testt   test_supportt   testdirt   dirt   listdirt   basenamet   syst
   __stdout__t   flusht   endswitht   TEST_ALLt   randomt   joint   verboset   opent   ft   readt   buft   closet   selft   assertRaisest   SyntaxErrort   compilert   compile(	   R!   R   R   R   R   R   R   R	   R   (    (    t/   /mit/python/lib/python2.4/test/test_compiler.pyt   testCompileLibrary   s2      
c         C   sT   t  } | i d ƒ p | i d ƒ o | d  } n t i | ƒ } |  i | ƒ d  S(   Ns   .pycs   .pyoiÿÿÿÿ(   R   t   filenameR   R$   t	   parseFilet   treeR!   t   check_lineno(   R!   R*   R(   (    (    R&   t
   testLineNo.   s
     c         C   s=   y |  i | ƒ Wn% t j
 o | i G| i GH‚  n Xd  S(   N(   R!   t   _check_linenot   nodet   AssertionErrort	   __class__t   lineno(   R!   R.   (    (    R&   R+   6   s
    c         C   s‘   | i t j oY |  i t | i t ƒ d | i | i f ƒ |  i | i d j d | i | i f ƒ n x! | i ƒ  D] } |  i
 | ƒ qv Wd  S(   Ns   lineno=%s on %si    (   R.   R0   t   NOLINENOR!   t   assert_t
   isinstanceR1   t   intt   getChildNodest   childR+   (   R!   R.   R7   (    (    R&   R-   =   s     (   t   __name__t
   __module__R'   R,   R+   R-   (    (    (    R&   R    	   s   	#		t   Totoc           B   s   t  Z d  Z RS(   t	   docstring(   R8   R9   t   __doc__(    (    (    R&   R:   M   s   i   i   i   i
   i    i   (   t   *c           C   s&   t  i i d ƒ a t  i i t ƒ d  S(   NR$   (   R   R   t   is_resource_enabledR   t   run_unittestR    (    (    (    R&   t	   test_maink   s     t   __main__(   i   i   (   i   i   (   R$   R   R   R   R   t   test.test_supportR   R   R   t   TestCaseR    t   astt   Modulet   Stmtt   DiscardR2   R:   t   at   bt   ct   dt   _[1]t   zipt   ranget   xt   yt   lt   yot   mathR@   R8   (   R   R   R:   R2   R@   R   R   RR   R    R   R$   RH   RJ   RI   RK   RQ   RL   R   RP   RO   R   (    (    R&   t   ?   s8   	$	
=!E	

 	