mò
­fIc           @   sª  d  k  l Z l Z d k Z d k Z h  a h  a g  a g  a d a	 d „  Z
 d f  d „  ƒ  YZ d „  Z d „  Z d „  Z e d	 ƒ d
 f  d „  ƒ  YZ d f  d „  ƒ  YZ e e d ƒ Z e e ƒ  i IJe i ƒ  e i e ƒ h  Z x! e d d ƒ D] Z e e e <qö We e d ƒ Z d f  d „  ƒ  YZ e ƒ  e e ƒ  <e e e ƒ IJe i ƒ  e i e ƒ [ [ h  Z x! e d d ƒ D] Z e e e <qWd f  d „  ƒ  YZ e ƒ  e e ƒ  <y e e ƒ  Wn e j
 o n X[ h  Z x! e d d ƒ D] Z e e e <qôWd f  d „  ƒ  YZ e d ƒ e e d ƒ <e d ƒ e e d ƒ <e e d ƒ Z z2 y e e e d ƒ IJWn e j
 o n XWd e i ƒ  e i e ƒ X[ d S(   (   s   verboses   TESTFNNi    c          C   s  t  p d  Sn t i ƒ  d j  o d  Sn t i ƒ  d j  o t t } } n t t } } t i ƒ  d j  oe d a  x, t t i	 d ƒ ƒ }  |  | j o Pqw qw Wt t i	 d ƒ ƒ | |  <| i |  ƒ d a  n9 | o1 t i	 t | ƒ ƒ } | | } | | =| | =n d  S(   Nf0.5f0.20000000000000001i    i   id   (   t   mutatet   randomt   dict1t	   dict1keyst   targett   keyst   dict2t	   dict2keyst   Horridt	   randranget   newkeyt   appendt   lent   it   key(   R
   R   R   R   R   (    (    t.   /mit/python/lib/python2.4/test/test_mutants.pyt   maybe_mutate/   s.       


R   c           B   s,   t  Z d „  Z d „  Z d „  Z d „  Z RS(   Nc         C   s   | |  _  t i d ƒ |  _ d  S(   Ni Êš;(   R   t   selfR   R	   t   hashcode(   R   R   (    (    R   t   __init__U   s    	c         C   s   |  i S(   N(   R   R   (   R   (    (    R   t   __hash___   s    c         C   s   t  ƒ  t |  i | i ƒ S(   N(   R   t   cmpR   R   t   other(   R   R   (    (    R   t   __cmp__b   s    c         C   s   d |  i S(   Ns
   Horrid(%d)(   R   R   (   R   (    (    R   t   __repr__f   s    (   t   __name__t
   __module__R   R   R   R   (    (    (    R   R   T   s   	
		c         C   sS   |  i ƒ  x< t | ƒ D]. } t t i | ƒ ƒ |  t t i | ƒ ƒ <q W|  i	 ƒ  S(   N(
   t   dt   cleart   xranget
   numentriesR   R   R   t   choicet
   candidatesR   (   R   R    R   R   (    (    R   t	   fill_dictm   s
    
 ,c         C   sµ   d a  t t t |  ƒ |  ƒ a t t t |  ƒ |  ƒ a d a  t o d Gt	 t ƒ Gt	 t ƒ Gn xC t o; t	 t ƒ t	 t ƒ j o" t o d Gn t
 t t ƒ } qb Wt o Hn d  S(   Ni    i   s   trying w/ lengthst   .(   R    R!   R   t   ranget   nR   R   R   t   verboseR   R   t   c(   R$   R&   (    (    R   t   test_oney   s       c         C   s1   x* t  |  ƒ D] } t t i d d ƒ ƒ q Wd  S(   Ni   id   (   R   R$   R   R'   R   R	   (   R$   R   (    (    R   t   test•   s     id   t   Childc           B   s   t  Z d „  Z d „  Z RS(   Nc         C   s   | |  i d <d  S(   Nt   parent(   R*   R   t   __dict__(   R   R*   (    (    R   R       s    c         C   s|   d |  i _ d |  i _ d |  i _ d |  i _ d |  i _ d |  i _ d |  i _ d |  i _	 d |  i _
 t |  i | ƒ S(   Ni   (   R   R*   t   at   bR&   R   t   et   ft   gt   hR   t   getattrt   attr(   R   R3   (    (    R   t   __getattr__¢   s    (   R   R   R   R4   (    (    (    R   R)   Ÿ   s   	t   Parentc           B   s   t  Z d „  Z RS(   Nc         C   s   t  |  ƒ |  _ d  S(   N(   R)   R   R,   (   R   (    (    R   R   ¯   s    (   R   R   R   (    (    (    R   R5   ®   s   t   wi   i
   t   Machiavellic           B   s   t  Z d „  Z d „  Z RS(   Nc         C   s   t  i ƒ  t Jd S(   Nt   machiavelli(   t   dictR   R/   (   R   (    (    R   R   È   s    
c         C   s   d S(   Ni    (    (   R   (    (    R   R   Ñ   s    (   R   R   R   R   (    (    (    R   R7   Ç   s   		t   Machiavelli2c           B   s   t  Z d „  Z d „  Z RS(   Nc         C   s   t  i ƒ  d S(   Ni   (   R9   R   (   R   R   (    (    R   t   __eq__æ   s    
c         C   s   d S(   Ni    (    (   R   (    (    R   R   ê   s    (   R   R   R;   R   (    (    (    R   R:   å   s   	t   Machiavelli3c           B   s,   t  Z d „  Z d „  Z d „  Z d „  Z RS(   Nc         C   s   | |  _  d  S(   N(   t   idR   (   R   R=   (    (    R   R      s    c         C   s-   |  i | i j o t i ƒ  d Sn d Sd  S(   Ni   i    (   R   R=   R   R9   R   (   R   R   (    (    R   R;     s    
c         C   s   d |  i i |  i f S(   Ns   %s(%s)(   R   t	   __class__R   R=   (   R   (    (    R   R   
  s    c         C   s   d S(   Ni    (    (   R   (    (    R   R     s    (   R   R   R   R;   R   R   (    (    (    R   R<   ÿ   s   			i   (   t   test.test_supportR%   t   TESTFNR   t   osR   R   R   R   R    R   R   R!   R'   R(   R)   R5   t   openR/   R+   t   closet   unlinkR9   R#   R   R7   t   strR:   t   KeyErrorR<   (   R   R%   R   R'   R   R5   R9   R)   R(   R!   R7   R@   R<   R:   R/   R   RA   (    (    R   t   ?   st   			%			
	
 
  	 
