ó
‹wÛjc           @   s»  d  d l  m Z m Z d  d l Z d  d l Z i  a i  a g  a g  a d a	 d „  Z
 d d d „  ƒ  YZ d „  Z d „  Z d	 „  Z e d
 ƒ d d d „  ƒ  YZ d d d „  ƒ  YZ e e d ƒ Z e e ƒ  j IJe j ƒ  e j e ƒ i  Z x! e d d ƒ D] Z e e e <qÿ We e d ƒ Z d d d „  ƒ  YZ e ƒ  e e ƒ  <e e e ƒ IJe j ƒ  e j e ƒ [ [ i  Z x! e d d ƒ D] Z e e e <qˆWd d d „  ƒ  YZ e ƒ  e e ƒ  <y e e ƒ  Wn e k
 rán X[ i  Z x! e d d ƒ D] Z e e e <qûWd d d „  ƒ  YZ e d ƒ e e d ƒ <e d ƒ e e d ƒ <e e d ƒ Z z0 y e e e d ƒ IJWn e k
 r‹n XWd e j ƒ  e j e ƒ X[ b b b b d S(   iÿÿÿÿ(   t   verboset   TESTFNNi    c          C   s  t  s
 d  St j ƒ  d k  r  d  St j ƒ  d k  rB t t }  } n t t }  } t j ƒ  d k  rÂ d a  x) t t j d ƒ ƒ } | |  k rj Pqj qj Wt t j d ƒ ƒ |  | <| j | ƒ d a  nB | rd a  t j t	 | ƒ ƒ } | | } |  | =| | =d a  n  d  S(   Ng      à?gš™™™™™É?i    id   i   (
   t   mutatet   randomt   dict1t	   dict1keyst   dict2t	   dict2keyst   Horridt	   randranget   appendt   len(   t   targett   keyst   newkeyt   it   key(    (    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_mutants.pyt   maybe_mutate/   s.    	
R   c           B   s5   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   s   | |  _  t j d ƒ |  _ d  S(   Ni Êš;(   R   R   R	   t   hashcode(   t   selfR   (    (    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_mutants.pyt   __init__S   s    	c         C   s   d S|  j  S(   Ni*   (   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_mutants.pyt   __hash__]   s    c         C   s   t  ƒ  t |  j | j ƒ S(   N(   R   t   cmpR   (   R   t   other(    (    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_mutants.pyt   __cmp__a   s    c         C   s   t  ƒ  |  j | j k S(   N(   R   R   (   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_mutants.pyt   __eq__e   s    c         C   s   d |  j  S(   Ns
   Horrid(%d)(   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_mutants.pyt   __repr__i   s    (   t   __name__t
   __module__R   R   R   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_mutants.pyR   R   s
   	
			c         C   sS   |  j  ƒ  x< t | ƒ D]. } t t j | ƒ ƒ |  t t j | ƒ ƒ <q W|  j ƒ  S(   N(   t   cleart   xrangeR   R   t   choiceR   (   t   dt
   candidatest
   numentriesR   (    (    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_mutants.pyt	   fill_dictp   s    
,c         C   sÍ   d a  t t t |  ƒ |  ƒ a t t t |  ƒ |  ƒ a d a  t r] d Gt t ƒ Gt t ƒ Gn  x_ t r¾ t t ƒ t t ƒ k r¾ t r‹ d Gn  t	 j	 ƒ  d k  r¯ t
 t t ƒ } q` t t k } q` Wt rÉ Hn  d  S(   Ni    i   s   trying w/ lengthst   .g      à?(   R   R#   R   t   rangeR   R   R   R    R   R   R   (   t   nt   c(    (    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_mutants.pyt   test_one|   s    !c         C   s1   x* t  |  ƒ D] } t t j d d ƒ ƒ q Wd  S(   Ni   id   (   R   R(   R   R	   (   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_mutants.pyt   test›   s    id   t   Childc           B   s   e  Z d  „  Z d „  Z RS(   c         C   s   | |  j  d <d  S(   Nt   parent(   t   __dict__(   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_mutants.pyR   ¦   s    c         C   s|   d |  j  _ d |  j  _ d |  j  _ d |  j  _ d |  j  _ d |  j  _ d |  j  _ d |  j  _ d |  j  _	 t
 |  j  | ƒ S(   Ni   (   R+   t   at   bR'   R    t   et   ft   gt   hR   t   getattr(   R   t   attr(    (    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_mutants.pyt   __getattr__¨   s    (   R   R   R   R5   (    (    (    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_mutants.pyR*   ¥   s   	t   Parentc           B   s   e  Z d  „  Z RS(   c         C   s   t  |  ƒ |  _ d  S(   N(   R*   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_mutants.pyR   µ   s    (   R   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_mutants.pyR6   ´   s   t   wi   i
   t   Machiavellic           B   s   e  Z d  „  Z d „  Z RS(   c         C   s   t  j ƒ  t Jt d ƒ S(   Nt   machiavelli(   t   dictR   R0   t   repr(   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_mutants.pyR   Î   s    
c         C   s   d S(   Ni    (    (   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_mutants.pyR   ×   s    (   R   R   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_mutants.pyR8   Í   s   		t   Machiavelli2c           B   s   e  Z d  „  Z d „  Z RS(   c         C   s   t  j ƒ  d S(   Ni   (   R:   R   (   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_mutants.pyR   ì   s    
c         C   s   d S(   Ni    (    (   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_mutants.pyR   ð   s    (   R   R   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_mutants.pyR<   ë   s   	t   Machiavelli3c           B   s,   e  Z d  „  Z d „  Z d „  Z d „  Z RS(   c         C   s   | |  _  d  S(   N(   t   id(   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_mutants.pyR     s    c         C   s(   |  j  | j  k r  t j ƒ  d Sd Sd  S(   Ni   i    (   R>   R:   R   (   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_mutants.pyR   	  s    
c         C   s   d |  j  j |  j f S(   Ns   %s(%s)(   t	   __class__R   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_mutants.pyR     s    c         C   s   d S(   Ni    (    (   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_mutants.pyR     s    (   R   R   R   R   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_mutants.pyR=     s   			i   (    (    (    (    (    (    (   t   test.test_supportR    R   R   t   osR   R   R   R   R   R   R   R#   R(   R)   R*   R6   t   openR0   R,   t   closet   unlinkR:   R%   R   R8   t   strR<   t   KeyErrorR=   (    (    (    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_mutants.pyt   <module>   sn   	#			
	


