mς
­fIc           @   sθ   d  k  l Z l Z l Z l Z d k Z d k Z d k Z d k Z d   Z	 d e	 i
 i d e	 i
 i d f Z d   Z d e i
 i d e i
 i d e i
 i d f Z d	 e i f d
     YZ d   Z e d j o e   n d S(   (   s   verifys   verboses
   TestFaileds   run_unittestNc         C   s	   |  GHd S(   Ni   (   t   a(   R    (    (    t*   /mit/python/lib/python2.4/test/test_dis.pyt   _f
   s    s΅    %-4d         0 LOAD_FAST                0 (a)
              3 PRINT_ITEM
              4 PRINT_NEWLINE

 %-4d         5 LOAD_CONST               1 (1)
              8 RETURN_VALUE
i   i   c          C   s   x t  d d  D] }  q Wd  S(   Ni   i
   (   t   ranget   res(   R   (    (    R   t	   bug708901   s    	 s   %-4d         0 SETUP_LOOP              23 (to 26)
              3 LOAD_GLOBAL              0 (range)
              6 LOAD_CONST               1 (1)

 %-4d         9 LOAD_CONST               2 (10)
             12 CALL_FUNCTION            2
             15 GET_ITER
        >>   16 FOR_ITER                 6 (to 25)
             19 STORE_FAST               0 (res)

 %-4d        22 JUMP_ABSOLUTE           16
        >>   25 POP_BLOCK
        >>   26 LOAD_CONST               0 (None)
             29 RETURN_VALUE
i   t   DisTestsc           B   s>   t  Z d   Z d   Z d   Z d   Z d   Z d   Z RS(   Nc   
      C   sΙ   t  i    } t i } | t _ t i |  | t _ | i   } | i	 d  } g  } | D] }	 | |	 i   qZ ~ } | i	 d  } d  k } | | j o* |  i d d i | i | |    n d  S(   Ns   
s"   events did not match expectation:
(   t   StringIOt   st   syst   stdoutt   save_stdoutt   dist   funct   getvaluet   gott   splitt   linest   _[1]t   linet   rstript   expectedt   difflibt   selft   failt   joint   ndiff(
   R   R   R   R   R   R   R   R   R   R   (    (    R   t   do_disassembly_test2   s    			'	c         C   s[   |  i t i d d  |  i t i d t i j t  |  i t i d t i j t  d  S(   Nt	   STOP_CODEi    t
   LOAD_CONSTt
   STORE_NAME(   R   t   assertEqualR   t   opmapt   hasconstt   Truet   hasname(   R   (    (    R   t
   test_opmapD   s     c         C   s"   |  i t i t i d d  d  S(   Nt	   LOAD_FAST(   R   R   R   t   opnameR    (   R   (    (    R   t   test_opnameI   s    c         C   s8   |  i t i d t i  |  i t i d t i  d  S(   Nt   EXTENDED_ARGR   (   R   R   R   R    R(   t   HAVE_ARGUMENT(   R   (    (    R   t   test_boundariesL   s    c         C   s   |  i t t  d  S(   N(   R   R   R   t   dis_f(   R   (    (    R   t   test_disP   s    c         C   s   |  i t t  d  S(   N(   R   R   R   t   dis_bug708901(   R   (    (    R   t   test_bug_708901S   s    (   t   __name__t
   __module__R   R$   R'   R*   R,   R.   (    (    (    R   R   1   s   					c           C   s   t  t  d  S(   N(   t   run_unittestR   (    (    (    R   t	   test_mainV   s    t   __main__(   t   test.test_supportt   verifyt   verboset
   TestFailedR1   R	   R   R   t   unittestR   t	   func_codet   co_firstlinenoR+   R   R-   t   TestCaseR   R2   R/   (   R+   R   R6   R   R5   R8   R	   R2   R   R   R1   R7   R-   R   (    (    R   t   ?   s   					$	1%	