mň
­fIc           @   sţ  d  k  l Z l Z l Z l Z l Z l Z d k l Z d k	 Z	 e	 i
 d d e d e  d   Z d d d	  Z d
 d d  Z d d d  Z d d d  Z d d d  Z d d d  Z d   Z d   Z d   Z d   Z d   Z h  d d <d  d! <d" d# <d$ d% <d& d' <d( d( <d) d* <d+ d, <d- d. <d/ d0 <d1 d2 <d3 d4 <d5 d5 <d6 d7 <d8 d9 <d: d; <d< d= <d> d? <d@ dA <Z xI e i   D]; \ Z Z e i   o e dB Z n dC e Z e e e <qŠWh  dD d <dE d! <dF dF <dG dH <dI dI <dJ dJ <dK dK <dL dL <dM dM <Z xI e i   D]; \ Z Z e i   o e dN Z n dO e Z e e e <qLWg  dP  Z dQ   Z  dR   Z! dS   Z" dT   Z# dU   Z$ dV   Z% dW   Z& dX   Z' dY   Z( dZ   Z) d[   Z* d\   Z+ d]   Z, d^   Z- d_   Z. d` Z/ da   Z0 db   Z1 dc   Z2 dd   Z3 de   Z4 df   Z5 dg   Z6 dh   Z7 di   Z8 dj   Z9 dk   Z: dl   Z; dm   Z< dn   Z= do   Z> dp   Z? dq   Z@ dr   ZA ds   ZB dt   ZC du   ZD dv   ZE dw   ZF dx   ZG dy   ZH dz   ZI d{   ZJ d|   ZK d}   ZL d~   ZM d   ZN d   ZO d   ZP d   ZQ d   ZR d   ZS d   ZT d   ZU d   ZV d   ZW d   ZX d   ZY d   ZZ d   Z[ d   Z\ d   Z] d   Z^ d   Z_ d   Z` d   Za d   Zb d   Zc d   Zd d   Ze d   Zf d   Zg d   Zh d   Zi d   Zj d   Zk d   Zl d   Zm d   Zn d    Zo dĄ   Zp d˘   Zq dŁ   Zr d¤   Zs dĽ   Zt dŚ   Zu d§   Zv d¨   Zw dŠ   Zx d k	 Z	 dŞ   Zy dŤ   Zz dŹ   Z{ d­   Z| e dŽ j o e|   n d S(Ż   (   s   verifys   vereqs   verboses
   TestFaileds   TESTFNs   get_original_stdout(   s   deepcopyNt   ignores,   complex divmod\(\), // and % are deprecated$s   (<string>|%s)$c         C   s(   |  | j	 o t d |  | f  n d  S(   Ns   %r is %r(   t   at   bt
   TestFailed(   R   R   (    (    t,   /mit/python/lib/python2.4/test/test_descr.pyt   veris   s    s   len(a)t   __len__c         C   sĂ   t  o d G| GHn h  d |  <} t t | |  |  t |   } t	 | |  } x" | | i j o | i d } qW Wt | | i |  t | |   |  t	 |  |  } t |   |  d  S(   Nt   checkingR   i    (   t   verboset   exprR   t   dictt   vereqt   evalt   rest   typet   tt   getattrt   metht   mt   __dict__t	   __bases__t   bm(   R   R   R	   R   R   R   R
   R   (    (    R   t   testunop   s      s   a+bt   __add__c   	      C   sú   t  o d G| GHn h  d |  <d | <} | d j o d d d j o
 d } n t t | |  |  t	 |   } t | |  } x" | | i j o | i d	 } q Wt | | i |  t | |  |  |  t |  |  } t | |  |  d  S(
   NR   R   R   t   __div__i   i   f0.5t   __truediv__i    (   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	   testbinop   s     
 s   a[b:c]t   __getslice__c   
      C   sá   t  o d G| GHn h  d |  <d | <d | <} t t | |  |  t	 |   }	 t |	 |  } x" | |	 i j o |	 i d }	 qi Wt | |	 i |  t | |  | |  |  t |  |  } t | | |  |  d  S(   NR   R   R   t   ci    (   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
   testternop.   s     ! s   a+=bt   __iadd__c   	      B   s  e  o d G| GHn h  d e |   <d | <} | | Ue | d |  e |   } e
 | |  } x" | | i j o | i d } qi We | | i |  e |   | d <| | d |  e | d |  e |   | d <e
 | d |  } | |  e | d |  d  S(   NR   R   R   i    (   R   t   stmtt   deepcopyR   R   R
   R   R   R   R   R   R   R   R   R   R   (	   R   R   R   R   R   R   R
   R   R   (    (    R   t	   testsetop;   s$      
s   a[b]=ct   __setitem__c   
      B   s"  e  o d G| GHn h  d e |   <d | <d | <} | | Ue | d |  e	 |   } e | |  } x" | | i j o | i d } qr We | | i |  e |   | d <| | d | |  e | d |  e |   | d <e | d |  }	 |	 | |  e | d |  d  S(   NR   R   R   R   i    (   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
   testset2opM   s$     ' s   a[b:c]=dt   __setslice__c         B   s1  e  o d G| GHn h  d e |   <d | <d | <d | <} | | Ue | d |  e
 |   }	 x" | |	 i j o |	 i d }	 ql We |	 |  } e | |	 i |  e |   | d <| | d | | |  e | d |  e |   | d <e | d |  }
 |
 | | |  e | d |  d  S(   NR   R   R   R   t   di    (   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
   testset3op_   s$     0 c          C   s'  d f  d     Y}  t |  i d  t |  i d d  d f  d     Y} t | i d  j  d t f d     Y} t | i d	  t | i d d	  d
 t f d     Y} t | i d  j  d t f d     Y} t | i d	  t | i d d	  d t f d     Y} t | i d  j  d  S(   Nt   Classicc           B   s   t  Z d  Z RS(   s   A classic docstring.(   t   __name__t
   __module__t   __doc__(    (    (    R   R'   r   s   s   A classic docstring.R*   t   Classic2c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R+   w   s   t	   NewStaticc           B   s   t  Z d  Z RS(   s   Another docstring.(   R(   R)   R*   (    (    (    R   R,   {   s   s   Another docstring.t
   NewStatic2c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R-      s   t
   NewDynamicc           B   s   t  Z d  Z RS(   s   Another docstring.(   R(   R)   R*   (    (    (    R   R.      s   t   NewDynamic2c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R/      s   (   R'   R   R*   R   R+   t   verifyt   Nonet   objectR,   R-   R.   R/   (   R'   R,   R/   R.   R-   R+   (    (    R   t   class_docstringsq   s    c        	   C   sâ  t  o	 d GHn t d g d g d d g d d  t d d d g d d d d  t d d d g d	 d
 d d  t d d d g d d d d  t d d d g d
 d d d g d d  t d g d g d d g d d  t d d g d d d d d d d g d d  t d d d g d d d  t d d g d d d d d d d g d d  t d d g d d d d d d d g d d  t d d g d d d d g d d  t d d d d	 g d d d d g d d d d	 g d d  d  S(   Ns   Testing list operations...i   i   s   a+bR   i   s   b in at   __contains__i   i    s   a[b]t   __getitem__s   a[b:c]R   s   a+=bR   s   a*=bt   __imul__s   len(a)R   s   a*bt   __mul__s   b*at   __rmul__s   a[b]=cR"   i   i   s   a[b:c]=dR$   (   R   R   R   R!   R   R#   R&   (    (    (    R   t   lists   s     	"("...%c          C   sG  t  o	 d GHn t h  d d <h  d d <d d d  t h  d d <d d <d d d	 d
  t h  d d <d d <d d d	 d
  t h  d d <d d <d d d d  h  d d <d d <}  g  } x! |  i   D] } | i |  qŰ Wg  } x! t |   D] } | i |  qWt	 | |  g  } x! |  i
   D] } | i |  q<Wt	 | |  g  } x$ t i
 |   D] } | i |  qvWt	 | |  h  d d <d d <}  t |  d d d  t	 t t |   h   |   t	 t |  i   h   |   t h  d d <d d <d d h  d d <d d <d d <d d  d  S(   Ns   Testing dict operations...i   i   i˙˙˙˙s   cmp(a,b)t   __cmp__i   i   s   b in aR4   i    s   a[b]R5   s   len(a)R   s   a[b]=cR"   (   R   R   R%   t   l1t   keyst   it   appendt   lt   iterR   t   __iter__R
   R   R   t   reprt   __repr__R#   (   R%   R=   R?   R;   (    (    R   t   dicts   s>     	((((        c       	   C   sÍ  t  o	 d GHn t   } t | h   t h   } t | h   t h  d d <d d < } t | h  d d <d d < t | t | i     t | t | i     t h  d d <d d < } t | t d d d d   t | t |    t | t h  d d <d d  t | t d" g d d  t | t d# d$ g |   t | t |   j	  x d
 d d d d
 g d% f D]m } y t |  WnF t j
 o qt	 j
 o( | d j o qôt
 d |   qXt
 d |   qWy t h  h   Wn t j
 o n Xt
 d   d f  d     Y} y t |    Wn t j
 o n Xt
 d   d   | _ d   | _ t |    } t | | i  d f  d     Y}  t |  d d  |  d d  |  d d  |  d d  g  } t | h  d d <d d < t t t d  t d d    } t | t g  } t d  D] } | | | d f qT~   xN d& g d' g f D]: } y t |  Wn t	 j
 o qXt
 d! |   qWd  S((   Ns   Testing dict constructor ...i   i   R   R   t   onet   twoid   iČ   i    l    x0.00.0t   0s   no TypeError from dict(%r)s   no TypeError from dict({}, {})t   Mappingc           B   s)   t  Z h  d d <d d <d d <Z RS(   Ni   i   i   i   R   x0.01.0(   R(   R)   R
   (    (    (    R   RH   Ý   s   s*   no TypeError from dict(incomplete mapping)c         C   s   |  i i   S(   N(   t   selfR
   R<   (   RI   (    (    R   t   <lambda>č   s    c         C   s   |  i | S(   N(   RI   R
   R=   (   RI   R=   (    (    R   RJ   é   s    t   AddressBookEntryc           B   s   t  Z d   Z d   Z RS(   Nc         C   s   | |  _  | |  _ d  S(   N(   t   firstRI   t   last(   RI   RL   RM   (    (    R   t   __init__ď   s    	c         C   s   t  |  i |  i g  S(   N(   R@   RI   RL   RM   (   RI   (    (    R   RA   ň   s    (   R(   R)   RN   RA   (    (    (    R   RK   î   s   	t   Timt   Warsawt   Barryt   Petersi   i   t   tooshortt   toot   longs   by 1s   no ValueError from dict(%r)(   RF   i   (   RE   id   (   RF   iČ   (   i    (   RS   (   RT   s   longs   by 1(   R   R
   R%   R   t   itemst	   iteritemsR0   t   badargt	   TypeErrort
   ValueErrorR   RH   R<   R5   RK   t   zipt   ranget   _[1]R=   t   bad(   RK   R=   R^   RX   RH   R]   R%   (    (    R   t   dict_constructor´   sn    		" <$> c             sŘ  t  o	 d GHn d }	 t t   d g  ~	 xE d d d d d g d d	 d/ h  d d <t t f D] } t |  q` Wd
 f  d     Y} d d d d g } t t |  |  t	 d t | i
  j  |   } t t |  |  d | _ d   | _ t t |  | d d g  t	 d t | i
  j  d | f d     Y} d d g | }  t t |  |   t	 d t | i  j  |   } t t |  |   t	 d t | i  j  d | _ d   | _ t t |  |  d d g  d   } d
 t f d     Y} d d g } t | t |   |  |   } t | t |   |  t	 d t | i
  j  d | _ d   | _ t | t |   | d d g  t	 d t | i
  j  d | f d     Y} d d g | }  t | t |   |   t	 d t | i  j  |   } t | t |   |   d | _ d    | _ t | t |   |  d d g  t	 d t | i  j  d  k } d! t |  f d"     Y}
 |
 d#  } d | _ d$ | _ g  } t |  D]$ } | d% d g j o | | qÔqÔ~ } t | d& d' g  d( |
 f d)     Y} | d*  } d | _ d$ | _ t | i d+  y t |  Wn t  j
 o n Xt t d   t t"   d, t f   d-     Y  d
 t f   d.     Y} t |    d  S(0   Ns   Testing dir() ...i   t   junki   l    x0.02.0f2.0t   2u   2t   Cc           B   s   t  Z d Z d   Z RS(   Ni   c         C   s   d  S(   N(    (   RI   (    (    R   t   Cmethod  s    (   R(   R)   t   CdataRc   (    (    (    R   Rb     s   Rd   Rc   R*   R)   t   im_selfc         C   s   d S(   Ni    (    (   RI   (    (    R   RJ     s    t   cdatat   cmethodt   Ac           B   s   t  Z d Z d   Z RS(   Ni   c         C   s   d  S(   N(    (   RI   (    (    R   t   Amethod%  s    (   R(   R)   t   AdataRi   (    (    (    R   Rh   #  s   Rj   Ri   i*   c         C   s   d S(   Ni   (    (   RI   (    (    R   RJ   .  s    t   adatat   amethodc         C   s3   g  } |  D]! } | i d  p | | q q ~ S(   Nt   _(   R]   t   stringst   st
   startswith(   Rn   R]   Ro   (    (    R   t   interesting3  s    c           B   s   t  Z d Z d   Z RS(   Ni   c         C   s   d  S(   N(    (   RI   (    (    R   Rc   8  s    (   R(   R)   Rd   Rc   (    (    (    R   Rb   6  s   c         C   s   d S(   Ni    (    (   RI   (    (    R   RJ   B  s    c           B   s   t  Z d Z d   Z RS(   Ni   c         C   s   d  S(   N(    (   RI   (    (    R   Ri   H  s    (   R(   R)   Rj   Ri   (    (    (    R   Rh   F  s   c         C   s   d S(   Ni   (    (   RI   (    (    R   RJ   P  s    t   Mc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rr   V  s   R   i   R(   R   R   t   M2c           B   s   t  Z d   Z e e  Z RS(   Nc         C   s   d S(   Ns   Not a dict!(    (   RI   (    (    R   t   getdict_  s    (   R(   R)   Rt   t   propertyR   (    (    (    R   Rs   ^  s   	t   m2s   Not a dict!t   Wrapperc              s;   t  Z d   Z d   Z   d   Z d   Z   d   Z RS(   Nc         C   s   | |  _ d  S(   N(   t   objRI   t   _Wrapper__obj(   RI   Rx   (    (    R   RN   r  s    c         C   s   d t  |  i  S(   Ns   Wrapper(%s)(   RB   RI   Ry   (   RI   (    (    R   RC   t  s    c            s     |  i |  S(   N(   Rw   RI   Ry   t   key(   RI   Rz   (   Rw   (    R   R5   v  s    c         C   s   t  |  i  S(   N(   t   lenRI   Ry   (   RI   (    (    R   R   x  s    c            s     t |  i |   S(   N(   Rw   R   RI   Ry   t   name(   RI   R|   (   Rw   (    R   t   __getattr__z  s    (   R(   R)   RN   RC   R5   R   R}   (    (   Rw   (    R   Rw   q  s
   			c              s    t  Z   d   Z e e  Z RS(   Nc            s     t |    S(   N(   Rw   R   RI   (   RI   (   Rw   (    R   t
   __getclass~  s    (   R(   R)   t   _C__getclassRu   t	   __class__(    (   Rw   (    R   Rb   }  s   (   i   ($   R   R`   R   t   dirR   t   test_dirt   argRb   t   cstuffR0   Rc   R   Rf   Rg   Rh   t   astuffRi   R   Rk   Rl   Rq   R2   t   sysRr   t	   minstanceR   R]   t   xt   namesRs   t
   m2instanceR   RY   R1   t   EllipsisRw   (   R   Rs   Rb   Rw   R   R   R   R   Rh   R`   Rr   R   R   R   R   R]   Rq   R   (    (   Rw   R   R     s    	4 							#		#			>		t   addt   +t   subt   -t   mult   *t   divt   /t   modt   %t   divmodt   pows   **t   lshifts   <<t   rshifts   >>t   andt   &t   xort   ^t   ort   |t   cmpt   ltt   <t   les   <=t   eqs   ==t   nes   !=t   gtt   >t   ges   >=s   (a, b)s   a %s bt   post   negt   abst   invertt   ~t   intRU   t   floatt   octt   hexs   (a)s   %s ac         C   sű   h  d |  <d | <} xn t i   D]` \ } } | | j oG d | } t |  |  o) t	 | |  } t |  | | | |  q q% q% Wxk t i   D]] \ } } | | j oD d | } t |  |  o& t	 | |  } t |  | | |  qó q q Wd  S(   NR   R   s   __%s__(   R   R   R
   t   binopsRV   R|   R	   t   skipt   hasattrR   R   R   t   unopsR   (   R   R   Rł   R   R|   R
   R	   (    (    R   t   numops´  s     
" 
c          C   sŰ   t  o	 d GHn t d d  t d i   d  t d i   d  d t f d     Y}  t |  d  d	  y |    d
 Wn t j
 o n Xt d  d  k } y |  | i	 d  Wn t
 j
 o n Xt d  d  S(   Ns   Testing int operations...id   i   i   i    Rb   c           B   s   t  Z d   Z RS(   Nc         C   s   t  S(   N(   t   NotImplemented(   RI   t   other(    (    R   R   Ë  s    (   R(   R)   R   (    (    (    R   Rb   Ę  s   l    i   t    s+   NotImplemented should have caused TypeErrors    should have raised OverflowError(   R   Rś   R   t   __nonzero__RŽ   Rb   RY   R   R   t   maxintt   OverflowError(   Rb   R   (    (    R   t   intsĂ  s$     			c           C   s!   t  o	 d GHn t d d  d  S(   Ns   Testing long operations...l   d l    (   R   Rś   (    (    (    R   t   longsÜ  s     	c           C   s!   t  o	 d GHn t d d  d  S(   Ns   Testing float operations...f100.0f3.0(   R   Rś   (    (    (    R   t   floatsŕ  s     	c          C   së   t  o	 d GHn t d d d d d d d d	 d
 d g d t f d     Y} | d d d }  t t |   d  t |  i d  | |  d d }  t t |   d  t |  i d  | d  }  t t |   d  t |  i d  d  S(   Ns   Testing complex operations...x0.0100.0x0.03.0Rł   RĄ   RŁ   RŚ   R¨   RŽ   RU   RŻ   t   Numberc           B   s)   t  Z d g Z d   Z d   Z e Z RS(   Nt   precc         O   s+   t  i |  |  } | i d d  | _ | S(   NRÁ   i   (   t   complext   __new__t   clst   argst   resultt   kwdst   getRÁ   (   RÄ   RĹ   RÇ   RĆ   (    (    R   RĂ   é  s    c         C   sm   |  i } |  i d j o d | |  i f Sn |  i d j o d | |  i f Sn d | |  i | |  i f S(   Nf0.0s   %.*gs   %.*gjs   (%.*g+%.*gj)(   RI   RÁ   t   imagt   real(   RI   RÁ   (    (    R   RC   í  s    	(   R(   R)   t	   __slots__RĂ   RC   t   __str__(    (    (    R   RŔ   ç  s   			f3.1400000000000001RÁ   i   s   3.14i   s   3.1f234.5s   234.5i   (   R   Rś   RÂ   RŔ   R   R   RB   RÁ   (   R   RŔ   (    (    R   t	   complexesä  s     	(c       
   C   s,  t  o	 d GHn d  k } d  k } d  d  } | | i | i <t | d g  | d g  | d d g  d d  t | d d d g  d d d d	  t | d d d g  d
 d d d	  t | d d d g  d d d d  t | d d d g  d d | d d g  d d  t	 | d g  | d g  | d d g  d d  t	 | d d g  d | d d d d d d g  d d  t
 | d d d g  d d d  t | d d g  d | d d d d d d g  d d  t | d d g  d | d d d d d d g  d d  t | d d g  d d | d d g  d d  t | d d d d
 g  d d | d d g  | d d d d
 g  d d  d  | i f d!     Y} |   }  t |  g   t |  i   d  |  i d"  t |  d" g  t |  i   d  |  i d#  t |  i   d#  d  S($   Ns   Testing spamlist operations...c         C   s   d  k  } | i |   S(   N(   t	   xxsubtypet   spamt   spamlistR?   (   R?   t   memoRĎ   (    (    R   RĐ     s    	i   i   s   a+bR   i   s   b in aR4   i   i    s   a[b]R5   s   a[b:c]R   s   a+=bR   s   a*=bR6   s   len(a)R   s   a*bR7   s   b*aR8   s   a[b]=cR"   i   i   s   a[b:c]=dR$   Rb   c           B   s   t  Z d   Z RS(   Nc         C   s   d S(   Ni   (    (   RI   (    (    R   t   foo  s    (   R(   R)   RŇ   (    (    (    R   Rb     s   id   i*   (   R   t   copyRÎ   RĎ   R1   RĐ   t   _deepcopy_dispatchR   R   R!   R   R#   R&   Rb   R   R   RŇ   R>   t   getstatet   setstate(   R   RĎ   Rb   RĐ   RÓ   (    (    R   t	   spamlists  s:     	4%%%*
*
:"::1-	c       	   C   s9  t  o	 d GHn d  k }
 d  k } d  d  } | |
 i | i <t | h  d d < | h  d d < d d d  t | h  d d <d d	 < d d d
 d  t | h  d d <d d	 < d d d
 d  t | h  d d <d d	 < d d d d  | h  d d <d d	 < } g  }	 x! | i
   D] } |	 i |  q-Wg  } x! t |  D] } | i |  qWWt | |	  g  } x! | i   D] } | i |  qWt | |	  g  } x0 t | h    i |  D] } | i |  qÔWt | |	  h  d d <d d	 <} | |  } t | d d d  t | t |  d d  t | h  d d <d d	 < d d | h  d d <d d <d d	 < d d  d | i f d     Y} |   }  t |  i   g   t |  i   d  d |  d <t |  i   d g  t |  i   d  |  i d  t |  i   d  d  S(   Ns   Testing spamdict operations...c         C   s@   d  k  } | i   } x$ |  i   D] \ } } | | | <q" W| S(   N(   RÎ   RĎ   t   spamdictt   sdR%   RV   t   kt   v(   R%   RŃ   RĎ   RÚ   RŰ   RŮ   (    (    R   RŘ   )  s    	  i   i   i˙˙˙˙s   cmp(a,b)R:   i   i   s   b in aR4   i    s   a[b]R5   s   len(a)R   s   repr(a)RC   s   a[b]=cR"   Rb   c           B   s   t  Z d   Z RS(   Nc         C   s   d S(   Ni   (    (   RI   (    (    R   RŇ   I  s    (   R(   R)   RŇ   (    (    (    R   Rb   H  s   t   barRŇ   id   (   s   fooRÜ   (   R   RÓ   RÎ   RĎ   R1   RŘ   RÔ   R   R%   R;   R<   R=   R>   R?   R@   R   RA   R   t	   straightdt   spamdR   RB   R#   Rb   R   RV   RŇ   RŐ   RÖ   (   R   RÝ   RŘ   R=   RĎ   R?   R%   RŢ   Rb   R;   RÓ   (    (    R   t	   spamdicts&  sX     	4...        H
	
c          C   sT  t  o	 d GHn t t t t   t t h  t   t   } t | h   t | i t j  t t | t   d t f d     Y} t t | t   | d  } t | i
 d  | d d d d  } t | d d j o | d d  |   }  t |  i
 d	  t |  i   d	  |  i d
  t |  i
 d
  t |  i   d
  |  i d  t |  i
 d  t |  i   d  t |  d d
  d |  d <t |  d d  t  o	 d GHn d } xJ t |  D]< } |   |  | <x& t |  D] } | | |  | | <qéWqÉWxD t |  D]6 } x- t |  D] } t |  | | | |  q)WqWd  S(   Ns"   Testing Python subclass of dict...Rb   c           B   s;   t  Z d Z d   Z d   Z d   Z d   Z d   Z RS(   Ni˙˙˙˙c         O   sa   | o$ t t |  d  | d |  _ n | o+ x( | i   D] \ } } | |  | <q? Wn d  S(   Ni   i    (	   R   R   R{   RI   t   statet   kwRV   RÚ   RŰ   (   RI   R   Rá   RŰ   RÚ   (    (    R   RN   ]  s      c         C   s   |  i | d  S(   Ni    (   RI   RČ   Rz   (   RI   Rz   (    (    R   R5   c  s    c         C   s0   t  t | t d    t i |  | |  d  S(   Ni    (   R0   t
   isinstanceRz   R   R
   R"   RI   t   value(   RI   Rz   Ră   (    (    R   R"   e  s    c         C   s   | |  _  d  S(   N(   Rŕ   RI   (   RI   Rŕ   (    (    R   RÖ   h  s    c         C   s   |  i S(   N(   RI   Rŕ   (   RI   (    (    R   RŐ   j  s    (   R(   R)   Rŕ   RN   R5   R"   RÖ   RŐ   (    (    (    R   Rb   [  s   				i   RŇ   i   RÜ   i   i˙˙˙˙i    i
   i*   i   s   pydict stress test ...i2   (   R   R0   t
   issubclassR
   Râ   R%   R   R   Rb   t   a1Rŕ   t   a2R   RŐ   RÖ   t   NR\   R=   t   j(   R   Rb   R%   R=   Rč   Rç   Rĺ   Rć   (    (    R   t   pydictsS  sP     		"	
 	    c          C   s   t  o	 d GHn d t f d     Y} |   }  |  i d d d g  t |  d d  t |  d d  t |  d d	  t |  d d
 !d  d  S(   Ns"   Testing Python subclass of list...Rb   c           B   s   t  Z d   Z d   Z RS(   Nc         C   s   t  i |  |  d S(   Nid   (   t   listR5   RI   R=   (   RI   R=   (    (    R   R5     s    c         C   s
   | | f S(   N(   R=   Rč   (   RI   R=   Rč   (    (    R   R     s    (   R(   R)   R5   R   (    (    (    R   Rb     s   	i    i   i   id   ie   if   iČ   (   id   iČ   (   R   Rę   Rb   R   t   extendR   (   R   Rb   (    (    R   t   pylists  s     		c             s÷  t  o	 d GHn d f  d     Y} |   } t | i   d  | i d  t | i   d  d f  d     Y} t | i   |  |   } t	 | i
 | j  d t f d	     Y d f   d
     Y} t | i d  |   } t | i d  d t f d     Y d t f  d     Y d f   d     Y} t | i d  t | i f   t	 d | i j  |   } t | i   d  d t f   d     Y  d f    d     Y} d | f d     Y} d | f d     Y} d | | f d     Y} t |   i   d  d | | f d     Y} t |   i   d  d t f  d      Y d f   d!     Y} |   } t	 t | d"   d# | _ t | i d#  t | i d$  d%    f d&     Y d f   d'     Y} d | f d(     Y} d | f d)     Y} d | | f d*     Y} t |   i d  d+ t f  d,     Y d f   d-     Y} t  i! d  |   } t t |  |  t  i! d  d t f d.     Y} |   } y |   Wn t" j
 o n Xt# d/  d  S(0   Ns   Testing __metaclass__...Rb   c           B   s)   t  Z e Z d   Z d   Z d   Z RS(   Nc         C   s   d |  _ d  S(   Ni    (   RI   t	   _C__state(   RI   (    (    R   RN     s    c         C   s   |  i S(   N(   RI   Rí   (   RI   (    (    R   RŐ     s    c         C   s   | |  _ d  S(   N(   Rŕ   RI   Rí   (   RI   Rŕ   (    (    R   RÖ     s    (   R(   R)   R   t   __metaclass__RN   RŐ   RÖ   (    (    (    R   Rb     s   		i    i
   t   Dc           B   s   t  Z d e f d     YZ RS(   NRî   c           B   s   t  Z d   Z RS(   Nc         C   s   |  S(   N(   RÄ   (   RÄ   (    (    R   t   myselfĽ  s    (   R(   R)   Rđ   (    (    (    R   Rî   ¤  s   (   R(   R)   R   Rî   (    (    (    R   Rď   Ł  s   t   M1c           B   s   t  Z d   Z RS(   Nc         C   s    d | d <t i |  | | |  S(   Ni   t   __spam__(   R
   R   RĂ   RÄ   R|   t   bases(   RÄ   R|   Ró   R
   (    (    R   RĂ   Ş  s    
(   R(   R)   RĂ   (    (    (    R   Rń   Š  s   c              s   t  Z   Z RS(   N(   R(   R)   Rń   Rî   (    (   Rń   (    R   Rb   ­  s   i   t	   _instancec           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rô   ł  s   Rs   c              s)   t  Z d   Z e e  Z   d   Z RS(   Nc         C   s.   t  i |   } | | _ | | _ | | _ | S(   N(   R2   RĂ   RÄ   RI   R|   Ró   R
   (   RÄ   R|   Ró   R
   RI   (    (    R   RĂ   ś  s
    			c            s[       } xK |  i D]@ } | i d  o q n t | | |  i | i | |    q W| S(   Nt   __(   Rô   t   itRI   R
   Rz   Rp   t   setattrt   __get__(   RI   Rö   Rz   (   Rô   (    R   t   __call__˝  s    	
 '(   R(   R)   RĂ   t   staticmethodRů   (    (   Rô   (    R   Rs   ľ  s   	c              s   t  Z   Z d   Z RS(   Nc         C   s   d S(   Ni*   (    (   RI   (    (    R   RĎ   Ç  s    (   R(   R)   Rs   Rî   RĎ   (    (   Rs   (    R   Rb   Ĺ  s   RĎ   i*   t	   autosuperc              s   t  Z   d   Z RS(   Nc            sy   t    |   i |  | | |  } x  | d  d j o | d } q$ W| o d | } n d } t | | t  |   | S(   Ni   Rm   s
   _%s__supert   __super(	   t   superRű   t	   metaclassRĂ   R|   Ró   R
   RÄ   R÷   (   Rţ   R|   Ró   R
   RÄ   (   Rű   (    R   RĂ   Ô  s     (   R(   R)   RĂ   (    (   Rű   (    R   Rű   Ń  s   Rh   c              s   t  Z   Z d   Z RS(   Nc         C   s   d S(   NRh   (    (   RI   (    (    R   R   â  s    (   R(   R)   Rű   Rî   R   (    (   Rű   (    R   Rh   ŕ  s   t   Bc           B   s   t  Z d   Z RS(   Nc         C   s   d |  i i   S(   NR˙   (   RI   t	   _B__superR   (   RI   (    (    R   R   ĺ  s    (   R(   R)   R   (    (    (    R   R˙   ä  s   c           B   s   t  Z d   Z RS(   Nc         C   s   d |  i i   S(   NRb   (   RI   t	   _C__superR   (   RI   (    (    R   R   č  s    (   R(   R)   R   (    (    (    R   Rb   ç  s   c           B   s   t  Z d   Z RS(   Nc         C   s   d |  i i   S(   NRď   (   RI   t	   _D__superR   (   RI   (    (    R   R   ë  s    (   R(   R)   R   (    (    (    R   Rď   ę  s   t   DCBAt   Ec           B   s   t  Z d   Z RS(   Nc         C   s   d |  i i   S(   NR  (   RI   t	   _E__superR   (   RI   (    (    R   R   ď  s    (   R(   R)   R   (    (    (    R   R  î  s   t   EBCAt   autopropertyc              s   t  Z   d   Z RS(   Nc   	         s  h  } x˛ | i   D]¤ \ } } | i d  o< | d } | i | d  \ } } | } | | f | | <q | i d  o< | d } | i | d  \ } } | } | | f | | <q q Wx3 | i   D]% \ } \ } } t	 | |  | | <qČ Wt
   |   i |  | | |  S(   Nt   _get_i   t   _set_(   NN(   NN(   t   hitsR
   RW   Rz   t   valRp   RČ   R1   t   setRu   Rý   R  Rţ   RĂ   R|   Ró   (	   Rţ   R|   Ró   R
   R
  R  R  RČ   Rz   (   R  (    R   RĂ   ö  s$     

 (   R(   R)   RĂ   (    (   R  (    R   R  ó  s   c              s    t  Z   Z d   Z d   Z RS(   Nc         C   s   |  i S(   N(   RI   t   _A__x(   RI   (    (    R   t   _get_x	  s    c         C   s   | |  _ d  S(   N(   R   RI   R  (   RI   R   (    (    R   t   _set_x  s    (   R(   R)   R  Rî   R  R  (    (   R  (    R   Rh     s   	R   i   iô˙˙˙t   multimetaclassc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R    s   c              s   t  Z   Z d   Z RS(   Nc         C   s   d S(   NRh   (    (   RI   (    (    R   R    s    (   R(   R)   R  Rî   R  (    (   R  (    R   Rh     s   c           B   s   t  Z d   Z RS(   Nc         C   s   d |  i i   S(   NR˙   (   RI   R   R  (   RI   (    (    R   R    s    (   R(   R)   R  (    (    (    R   R˙     s   c           B   s   t  Z d   Z RS(   Nc         C   s   d |  i i   S(   NRb   (   RI   R  R  (   RI   (    (    R   R    s    (   R(   R)   R  (    (    (    R   Rb     s   c           B   s   t  Z d   Z RS(   Nc         C   s   d |  i i   S(   NRď   (   RI   R  R  (   RI   (    (    R   R  !  s    (   R(   R)   R  (    (    (    R   Rď      s   t   Tc              s   t  Z d Z   d   Z RS(   Ni    c            s     i d 7_ d  S(   Ni   (   R  t   counter(   RI   RĹ   (   R  (    R   RN   (  s    (   R(   R)   R  RN   (    (   R  (    R   R  &  s   c              s   t  Z   Z RS(   N(   R(   R)   R  Rî   (    (   R  (    R   Rb   *  s   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rb   1  s    s5   calling object w/o call method should raise TypeError($   R   Rb   R   R   RŐ   RÖ   Rď   Rđ   R%   R0   R   R   Rń   Rň   R   R2   Rô   Rs   R|   Ró   R
   RĎ   Rű   Rh   R˙   R   R  R  R´   R   R  R  R  R  RY   R   (   Rű   Rń   Rs   R  Rh   Rb   R˙   R  Rď   R  R  R   R   R%   Rô   (    (   Rű   Rń   Rs   R  R  R  Rô   R   Rţ     st     									  c             s   t  o	 d GHn g   d  k } t |    d   f    d     Y} | d  }  d |  _ |  i } |  ` t	  d
 d d g  d  S(   Ns$   Testing Python subclass of module...t   MMc              sA   t  Z  d   Z    d   Z    d   Z    d   Z RS(   Nc            s     i |  |  d  S(   N(   t   MTRN   RI   R|   (   RI   R|   (   R  (    R   RN   =  s    c            s#    i d | f    i |  |  S(   NR   (   t   logR>   R|   R  t   __getattribute__RI   (   RI   R|   (   R  R  (    R   R  ?  s    c            s-    i d | | f    i |  | |  d  S(   NR÷   (   R  R>   R|   Ră   R  t   __setattr__RI   (   RI   R|   Ră   (   R  R  (    R   R  B  s    c            s'    i d | f    i |  |  d  S(   Nt   delattr(   R  R>   R|   R  t   __delattr__RI   (   RI   R|   (   R  R  (    R   R  E  s    (   R(   R)   RN   R  R  R  (    (   R  R  (    R   R  <  s   R   i   R÷   RŇ   R   R  (   s   setattrs   fooi   (   s   getattrs   foo(   s   delattrs   foo(
   R   R  R   R   R  R  R   RŇ   R   R   (   R   R  R   R  R   R  (    (   R  R  R   t   pymods7  s     				c             sĎ  t  o	 d GHn d t f d     Y      } t | i   d  | i d  t | i   d  d t   f   d     Y}
 |
   } t | i
   g   d | d	 <t | i   d1 g  t | d	 d  t | i   d  | i d  t | i   d  t |
 i |
 t   t f  d
 t f d     Y} d | t f d     Y} t |   i   d  t t |    d  t |   i   d  t t |    d  d f  d     Y} d | f d     Y} d | f d     Y  d |   f d     Y}
 t |
 i d  d |
 t f d     Y}	 t |	 i |	 |
 | |   t f  t |	 i d  d |   t f d     Y} t | i | |   | t f  t | i d  d f  d     Y  d   t f d     Y}  t |  i |    t f  |    } t | i   d  t | i   d   t | i   d!  d   f d"     Y}
 d# |
 t f d$     Y} t | i | |
   t f  |   } t | i   d  t | i   d%  t | i   d&  t | i   d'  d( |  | t f d)     Y} t | i | |  | |
   t f  |   } t | i   d  t | i   d%  t | i   d   t | i   d&  t | i    d*  t | i   d+  d, f  d-     Y} y d. | f d/     Y} Wn t# j
 o n Xt$ d0  d  S(2   Ns   Testing multiple inheritance...Rb   c           B   s#   t  Z d   Z d   Z d   Z RS(   Nc         C   s   d |  _ d  S(   Ni    (   RI   Rí   (   RI   (    (    R   RN   S  s    c         C   s   |  i S(   N(   RI   Rí   (   RI   (    (    R   RŐ   U  s    c         C   s   | |  _ d  S(   N(   Rŕ   RI   Rí   (   RI   Rŕ   (    (    R   RÖ   W  s    (   R(   R)   RN   RŐ   RÖ   (    (    (    R   Rb   R  s   		i    i
   Rď   c              s   t  Z   d   Z RS(   Nc            s$   t  h   i |     i |   d  S(   N(   R   RN   RI   Rb   (   RI   (   Rb   (    R   RN   ^  s    (   R(   R)   RN   (    (   Rb   (    R   Rď   ]  s   t   worldt   hellot   Nodec           B   s   t  Z d   Z d   Z RS(   Nc         C   s   t  |  i    S(   N(   RŽ   RI   RŇ   (   RI   (    (    R   t   __int__m  s    c         C   s   d S(   Nt   23(    (   RI   (    (    R   RŇ   o  s    (   R(   R)   R  RŇ   (    (    (    R   R  l  s   	t   Fragc           B   s   t  Z d   Z RS(   Nc         C   s   d S(   Nt   42(    (   RI   (    (    R   RŇ   r  s    (   R(   R)   RŇ   (    (    (    R   R   q  s   i   i*   Rh   c           B   s   t  Z d Z RS(   Ni   (   R(   R)   R   (    (    (    R   Rh   {  s   R˙   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R˙   ~  s   c           B   s   t  Z d Z RS(   Ni   (   R(   R)   R   (    (    (    R   Rb     s   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rď     s   i   R  c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R    s   t   Fc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R"    s   i   c           B   s   t  Z d   Z d   Z RS(   Nc         C   s   d S(   Ns   C a(    (   RI   (    (    R   Rg     s    c         C   s   d S(   Ns   C b(    (   RI   (    (    R   t
   all_method  s    (   R(   R)   Rg   R#  (    (    (    R   Rb     s   	Rń   c           B   s   t  Z d   Z d   Z RS(   Nc         C   s   d S(   Ns   M1 a(    (   RI   (    (    R   t   m1method  s    c         C   s   d S(   Ns   M1 b(    (   RI   (    (    R   R#    s    (   R(   R)   R$  R#  (    (    (    R   Rń     s   	s   C as   M1 as   M1 bc           B   s   t  Z d   Z d   Z RS(   Nc         C   s   d S(   Ns   D a(    (   RI   (    (    R   t   dmethodŠ  s    c         C   s   d S(   Ns   D b(    (   RI   (    (    R   R#  Ť  s    (   R(   R)   R%  R#  (    (    (    R   Rď   ¨  s   	Rs   c           B   s   t  Z d   Z d   Z RS(   Nc         C   s   d S(   Ns   M2 a(    (   RI   (    (    R   t   m2methodŻ  s    c         C   s   d S(   Ns   M2 b(    (   RI   (    (    R   R#  ą  s    (   R(   R)   R&  R#  (    (    (    R   Rs   Ž  s   	s   D as   M2 as   M2 bt   M3c           B   s   t  Z d   Z d   Z RS(   Nc         C   s   d S(   Ns   M3 a(    (   RI   (    (    R   t   m3methodź  s    c         C   s   d S(   Ns   M3 b(    (   RI   (    (    R   R#  ž  s    (   R(   R)   R(  R#  (    (    (    R   R'  ť  s   	s   M3 as   M3 bR'   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R'   É  s   t   Newc           B   s   t  Z e Z RS(   N(   R(   R)   R   Rî   (    (    (    R   R)  Ě  s   s0   new class with only classic bases - shouldn't be(   R  R  (%   R   R2   Rb   R   R   RŐ   RÖ   R
   Rď   R%   R<   RV   t   __mro__R  Rę   R   R  RŽ   Rh   R˙   R   R  R"  Rń   R   Rg   R$  R#  Rs   R%  R&  R'  R(  R'   R)  RY   R   (   Rń   R'  Rs   R)  R  Rh   R   Rb   R˙   R  Rď   R"  R   R%   R'   R   (    (   Rb   R   t   multiP  s     			
"		"	c          C   s  t  o	 d GHn d t f d     Y}  t |    i   d  d |  f d     Y} t |   i   d  t |   i   d  d |  f d     Y} t |   i   d  t |   i   d  d | | f d	     Y} t |   i   d  t |   i   d  t | i	 | | | |  t f  d
 | | f d     Y} t |   i   d  t |   i   d  t | i	 | | | |  t f  y d | | f d     Y} Wn t j
 o n Xt d  y d | | f d     Y} Wn t j
 o n Xt d  d  S(   Ns-   Testing multiple inheritance special cases...Rh   c           B   s   t  Z d   Z RS(   Nc         C   s   d S(   NRh   (    (   RI   (    (    R   RĎ   Ö  s    (   R(   R)   RĎ   (    (    (    R   Rh   Ő  s   R˙   c           B   s   t  Z d   Z d   Z RS(   Nc         C   s   d S(   NR˙   (    (   RI   (    (    R   t   booŮ  s    c         C   s   d S(   NR˙   (    (   RI   (    (    R   RĎ   Ú  s    (   R(   R)   R,  RĎ   (    (    (    R   R˙   Ř  s   	Rb   c           B   s   t  Z d   Z RS(   Nc         C   s   d S(   NRb   (    (   RI   (    (    R   R,  Ţ  s    (   R(   R)   R,  (    (    (    R   Rb   Ý  s   Rď   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rď   á  s    R  c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R  ĺ  s    R"  c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R"  ë  s    s#   expected MRO order disagreement (F)t   Gc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R-  ń  s    s#   expected MRO order disagreement (G)(   R   R2   Rh   R   RĎ   R˙   R,  Rb   Rď   R*  R  R"  RY   R   R-  (   Rh   Rb   R˙   R-  R"  R  Rď   (    (    R   t   diamondÓ  s8     		c       	   C   sĆ   t  o	 d GHn d t f d     Y}  d t f d     Y} d t f d     Y} d |  f d	     Y} d
 |  f d     Y} d | | | | f d     Y} t | i	 | | | | |  | t f  d  S(   Ns(   Testing ex5 from C3 switch discussion...Rh   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rh   ű  s    R˙   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R˙   ü  s    Rb   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rb   ý  s    t   Xc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R/  ţ  s    t   Yc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R0  ˙  s    t   Zc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R1     s    (
   R   R2   Rh   R˙   Rb   R/  R0  R1  R   R*  (   Rh   Rb   R˙   R0  R/  R1  (    (    R   t   ex5ů  s     	c          C   s6  t  o	 d GHn d t f d     Y} d | f d     Y} d | f d     Y} d | f d	     Y} d
 | f d     Y} d | | f d     Y} d | f d     Y}  d | |  f d     Y} t
 | i | | | | | t f  t
 |  i |  | | | t f  t
 | i | | | |  | | | | t f	  d  S(   Ns   Testing MRO monotonicity...t   Boatc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R3    s    t   DayBoatc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R4    s    t	   WheelBoatc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R5  	  s    t
   EngineLessc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R6  
  s    t   SmallMultihullc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R7    s    t   PedalWheelBoatc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R8    s    t   SmallCatamaranc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R9    s    t   Pedaloc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R:    s    (   R   R2   R3  R4  R5  R6  R7  R8  R9  R:  R   R*  (   R9  R7  R4  R6  R:  R5  R8  R3  (    (    R   t   monotonicity  s      				c       	   C   sĆ   t  o	 d GHn d t f d     Y} d t f d     Y} d t f d     Y} d | | f d	     Y}  d
 | | f d     Y} d |  | f d     Y} t | i	 | |  | | | | t f  d  S(   Ns    Testing consistentcy with EPG...t   Panec           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R<    s    t   ScrollingMixinc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R=    s    t   EditingMixinc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R>     s    t   ScrollablePanec           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R?  !  s    t   EditablePanec           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R@  "  s    t   EditableScrollablePanec           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   RA  #  s    (
   R   R2   R<  R=  R>  R?  R@  RA  R   R*  (   R?  RA  R=  R<  R@  R>  (    (    R   t   consistency_with_epg  s     		sC   Cannot create a consistent method resolution
order (MRO) for bases c    	      C   sR  t  o	 d GHn d   } d t f d     Y}  d |  f d     Y} d t f d     Y} | t d	 t d
 |  |  f h   | t t t d
 |  | f h   | t t t d
 |  | | f h   d t f d     Y} d | f d     Y} d | f d     Y} d | | f d     Y} d | | f d     Y} | t t t d | | f h   d  S(   Ns.   Testing error messages for MRO disagreement...c         G   sj   y | |   WnH |  j
 o< } t |  i |  p t d t |  | f  qf n Xt d |   d  S(   Ns   Message %r, expected %rs   Expected %s(   t   callableRĹ   t   exct   msgt   strRp   t   expectedR   (   RD  RG  RC  RĹ   RE  (    (    R   t   raises.  s    "Rh   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rh   7  s    R˙   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R˙   8  s    Rb   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rb   9  s    s   duplicate base class AR/  t
   GridLayoutc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   RI  B  s    t   HorizontalGridc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   RJ  C  s    t   VerticalGridc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   RK  D  s    t   HVGridc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   RL  E  s    t   VHGridc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   RM  F  s    t   ConfusedGrid(   R   RH  R2   Rh   R˙   Rb   RY   R   t   mro_err_msgRI  RJ  RK  RL  RM  (	   Rh   RL  Rb   R˙   RM  RK  RJ  RH  RI  (    (    R   t   mro_disagreement,  s&     							c          C   s  t  o	 d GHn t   }  t |  i t  t t |   t  t   } t |  | j	  t t |  d   y d |  _	 Wn t
 t f j
 o n Xt d d  t t t   d   d t f d     Y} |   } t | i h   d	 | _	 t | i	 d	  t | i h  d d	 < d  S(
   Ns   Testing object class...RŇ   i   i    s1   object() should not allow setting a foo attributeR   t   Cdictc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   RQ  Z  s   i   (   R   R2   R   R   R   R   R   R0   R´   RŇ   t   AttributeErrorRY   RQ  R   R   (   R   R   RQ  R   (    (    R   t   objectsJ  s(     					c             sŢ  t  o	 d GHn d t f d     Y} |   } t t | d   t t | d   d t f d     Y} |   } t t | d   t t | d   d	 | _ t | i d	  d  | _ t
 | i d   | ` t t | d   d
 t f d     Y} |   } t t | d   t t | d   t t | d   t t | d   d	 | _ d | _ d | _ t | i d	  t | i d  t | i d  d t f d     Y}	 |	 d  } t t | d   t t | d   t | i   d  y d | _ Wn t j
 o n Xt d  y d t f d     Y} Wn t j
 o n Xt d  y d t f d     Y} Wn t j
 o n Xt d  y d t f d     Y} Wn t j
 o n Xt d  y d t f d     Y} Wn t j
 o n Xt d  y d t f d     Y} Wn t j
 o n Xt d   d t f d!     Y} d" t f   d#     Y  d t f d$     Y} |   }     | _     | _     | _ t   i d  ~ t   i d%  d& | f d'     Y} |   }     | _     | _ t   i d  ~ t   i d%  d( | f d)     Y}
 |
   }     | _     | _     | _ t   i d  ~ t   i d%  d* t f d+     Y} g  } |   }     | g | _ t   i d	  d  } d  k } | i   t   i d%  d  k  } d  k } d, t f d-     Y} |   } t# | i$    } x t& d.  D] } | | j q_Wt# | i$    }  t | |   d/ t f d0     Y} | i* } | i, | _* |   } z ~ Wd  | | _* Xd  S(1   Ns   Testing __slots__...t   C0c           B   s   t  Z g  Z RS(   N(   R(   R)   RË   (    (    (    R   RT  d  s   R   RŇ   t   C1c           B   s   t  Z d g Z RS(   NR   (   R(   R)   RË   (    (    (    R   RU  j  s   R   i   t   C3c           B   s   t  Z d d d g Z RS(   NR   R   R   (   R(   R)   RË   (    (    (    R   RV  v  s   R   R   i   i   t   C4c           B   s)   t  Z d  Z d g Z d   Z d   Z RS(   s   Validate name manglingt   __ac         C   s   | |  _ d  S(   N(   Ră   RI   t   _C4__a(   RI   Ră   (    (    R   RN     s    c         C   s   |  i S(   N(   RI   RY  (   RI   (    (    R   RČ     s    (   R(   R)   R*   RË   RN   RČ   (    (    (    R   RW    s    		i   RX  i   s$   Double underscored names not mangledRb   c           B   s   t  Z d  g Z RS(   N(   R(   R)   R1   RË   (    (    (    R   Rb     s   s   [None] slots not caughtc           B   s   t  Z d g Z RS(   Ns   foo bar(   R(   R)   RË   (    (    (    R   Rb     s   s   ['foo bar'] slots not caughtc           B   s   t  Z d g Z RS(   Nt   foo bar(   R(   R)   RË   (    (    (    R   Rb   Ś  s   s   ['foo\0bar'] slots not caughtc           B   s   t  Z d g Z RS(   Nt   1(   R(   R)   RË   (    (    (    R   Rb   ­  s   s   ['1'] slots not caughtc           B   s   t  Z d g Z RS(   NRš   (   R(   R)   RË   (    (    (    R   Rb   ´  s   s   [''] slots not caughtc           B   s   t  Z d d d d g Z RS(   NR   t   a_bt   _at   A0123456789Z(   R(   R)   RË   (    (    (    R   Rb   ş  s   t   Countedc              s&   t  Z d Z   d   Z   d   Z RS(   Ni    c            s     i d 7_ d  S(   Ni   (   R_  R  (   RI   (   R_  (    R   RN   Ŕ  s    c            s     i d 8_ d  S(   Ni   (   R_  R  (   RI   (   R_  (    R   t   __del__Â  s    (   R(   R)   R  RN   R`  (    (   R_  (    R   R_  ž  s   c           B   s   t  Z d d d g Z RS(   NR   R   R   (   R(   R)   RË   (    (    (    R   Rb   Ä  s   i    Rď   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rď   Í  s   R  c           B   s   t  Z d g Z RS(   Nt   e(   R(   R)   RË   (    (    (    R   R  Ő  s   R"  c           B   s   t  Z d d g Z RS(   NR   R   (   R(   R)   RË   (    (    (    R   R"  ŕ  s   R-  c           B   s   t  Z d   Z RS(   Nc         C   s   d S(   Ni    (    (   RI   R¸   (    (    R   R:   î  s    (   R(   R)   R:   (    (    (    R   R-  í  s   i
   t   Hc           B   s&   t  Z d d g Z d   Z d   Z RS(   NR   R   c         C   s   d |  _ d |  _ d  S(   Ni   i   (   RI   R   R   (   RI   (    (    R   RN   ř  s    	c         C   s   d  S(   N(    (   RI   (    (    R   R`  ű  s    (   R(   R)   RË   RN   R`  (    (    (    R   Rb  ö  s   	(.   R   R2   RT  R   R0   R´   RU  R   R   R1   R   RV  R   R   RW  RČ   RX  RR  R   Rb   RY   R_  R  Rď   t   zR  Ra  R"  R  Ro   t   gct   collectR   R-  t   gR{   t   get_objectst   orig_objectst   xrangeR=   t   new_objectsRb  t   stderrt   save_stderrt   stdoutt   h(   Rj  Rb   Rh  Rd  R  Rl  RV  RU  RT  RW  R  Rď   R-  R"  Rb  R   R_  Rf  R=   Rn  Ro   R   (    (   R_  R   t   slotsb  sä     																				
	 			 c          C   sÂ  t  o	 d GHn d t f d     Y} |   }  t t |  d   t t |  d   d |  _ t |  i h  d d < d t f d	     Y} |   }  t t |  d   t t |  d   y d |  _ Wn t
 j
 o n Xt d
  d | | f d     Y} |   }  t t |  d   t t |  d   d |  _ t |  i h  d d < d | | f d     Y} |   }  t t |  d   t t |  d   d |  _ t |  i h  d d < d  S(   Ns0   Testing __dict__ and __weakref__ in __slots__...Rď   c           B   s   t  Z d g Z RS(   NR   (   R(   R)   RË   (    (    (    R   Rď   
  s   R   t   __weakref__i*   RŇ   t   Wc           B   s   t  Z d g Z RS(   NRp  (   R(   R)   RË   (    (    (    R   Rq    s   s!   shouldn't be allowed to set a.fooRU  c           B   s   t  Z g  Z RS(   N(   R(   R)   RË   (    (    (    R   RU    s   t   C2c           B   s   t  Z g  Z RS(   N(   R(   R)   RË   (    (    (    R   Rr  &  s   (   R   R2   Rď   R   R0   R´   RŇ   R   R   Rq  RR  R   RU  Rr  (   R   Rq  Rr  RU  Rď   (    (    R   t   slotspecials  s:     									c             s{  t  o	 d GHn d t f d     Y} d | f d     Y} d | f d     Y} d | _ t | i d  t | i d  t | i d  d	 t f d
     Y} |   }	 t	 t
 |	 d   d | _ t |	 i d  d   | _ t |	 i   d  d   | _ t t |	  d  d   | _ t t |	  d  t |	 i d  t	 t
 |	 d   d   } | | _ t |	 i d  d |	 _ t |	 i d  d   }  |  | _ y d |	 _ Wn t j
 o n Xt	 d d  t |	 i d  d | f d     Y} |   }
 d |
 _ t |
 i d  d t f d     Y} t d | d  d  t | d  d d  t d | d  d   t | d  d d   t | d  | d  d   d! t f d"     Y} t d | d#  d  t | d#  d d  t d | d  d   t | d  d d   t | d  | d  d   d$ t f d%     Y  d& f    d'     Y} t	 | t j  d  S((   Ns&   Testing class attribute propagation...Rď   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rď   8  s   R  c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R  :  s   R"  c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R"  <  s   i   Rb   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rb   D  s   t   foobari   c         C   s   d S(   Ni*   (    (   RI   (    (    R   RJ   J  s    i*   c         C   s   d S(   Ns   C()(    (   RI   (    (    R   RJ   L  s    s   C()c         C   s   d S(   Nid   (    (   RI   (    (    R   RJ   N  s    id   RĎ   c         C   s   | d j o d Sn t  d  S(   NRĎ   (   R|   RR  (   RI   R|   (    (    R   t	   mygetattrR  s    i   c         C   s*   | d j o
 t  n t i |  | |  S(   NRĎ   (   R|   RR  R2   R  RI   Ră   (   RI   R|   Ră   (    (    R   t	   mysetattrZ  s    
s   not spami    s   expected AttributeErrorc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rď   f  s   t   Ic           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rw  m  s   R   t   aai   i   t   Lc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Ry  v  s   l    t   dynamicmetaclassc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rz    s   t	   someclassc              s   t  Z   Z RS(   N(   R(   R)   Rz  Rî   (    (   Rz  (    R   R{    s   (   R   R2   Rď   R  R"  RŇ   R   Rb   R   R0   R´   Rt  t   methodRC   RB   R  RŽ   Ru  R}   RĎ   t   newRv  R  RR  R%   Rw  RU   Ry  R   Rz  R{  (   Rv  Ru  Rb   R  Rď   R"  Rw  R{  Ry  R   R%   Rz  (    (   Rz  R   t   dynamics6  sl     											c          C   sd  t  o	 d GHn y d t t f d     Y}  Wn t j
 o n Xt d d  y d t d  f d     Y}  Wn t j
 o n Xt d d  d f  d	     Y} y  d t	 t
  f d
     Y}  Wn t j
 o n Xt d d  y d t f d     Y}  Wn t j
 o n Xt d d  y d t f d     Y}  Wn t j
 o n Xt d d  d  S(   Ns   Testing errors...Rb   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rb     s   i    s5   inheritance from both list and dict should be illegalc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rb     s   s+   inheritance from non-type should be illegalR'   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R'     s   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rb     s   s,   inheritance from CFunction should be illegalc           B   s   t  Z d Z RS(   Ni   (   R(   R)   RË   (    (    (    R   Rb   Ł  s   s   __slots__ = 1 should be illegalc           B   s   t  Z d g Z RS(   Ni   (   R(   R)   RË   (    (    (    R   Rb   Ť  s   s!   __slots__ = [1] should be illegal(   R   Rę   R
   Rb   RY   R0   R2   R1   R'   R   R{   (   Rb   R'   (    (    R   t   errors  s8     	 c          C   sG  t  o	 d GHn d t f d     Y} |   }  t | i d  | d f  t |  i d  | d f  t |  i d  |  d f  d | f d     Y} |   } t | i d  | d f  t | i d  | d f  t | i d  | d f  t | i | d  | d f  d   } t
 |  } t | i d t  d	  t d	 f  t | i d  d	  t d	 f  t | i i |  t | i i |  t t | |  i i |  t t | |  i i |  t t | |  i   | f  t t | |  i   | f  y t
 d  i d  Wn t j
 o n Xt d
  d  S(   Ns   Testing class methods...Rb   c           B   s   t  Z d   Z e e  Z RS(   Nc          G   s   |  S(   N(   R   (   R   (    (    R   RŇ   ľ  s    (   R(   R)   RŇ   t   classmethodt   goo(    (    (    R   Rb   ´  s   	i   Rď   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rď   ť  s   c         C   s
   |  | f S(   N(   RÄ   R   (   RÄ   R   (    (    R   t   fĂ  s    i    i*   s(   classmethod should check for callability(   R   R2   Rb   R   R   R  RŇ   Rď   R%   R  R  t   ffRř   RŽ   R   Re   Rý   RY   R   (   R   R  Rb   R%   R  Rď   (    (    R   t   classmethods˛  s8     				%"c          C   sĹ   t  o	 d GHn d  k } d }  h  d d <} | i i |  |   \ } } } t
 | | i  t |  |  t | |  | i   i |  |   \ } } } t
 | | i  t |  |  t | |  d  S(   Ns    Testing C-based class methods...i   i   i   t   abci{   (   i   i   i   (   R   RÎ   RĎ   R   R%   RĐ   t	   classmethR   Rĺ   t   d1R   R   (   R   R%   RĎ   Rĺ   R   R  (    (    R   t   classmethods_in_cŘ  s     		!c          C   s  t  o	 d GHn d t f d     Y} |   }  t | i d  d  t |  i d  d  t |  i d  |  d f  d | f d     Y} |   } t | i d  d	  t | i d  d
  t | i d  | d f  t | i | d  | d f  d  S(   Ns   Testing static methods...Rb   c           B   s   t  Z d   Z e e  Z RS(   Nc          G   s   |  S(   N(   R   (   R   (    (    R   RŇ   é  s    (   R(   R)   RŇ   Rú   R  (    (    (    R   Rb   č  s   	i   Rď   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rď   ď  s   (   i   (   i   (   i   (   i   (	   R   R2   Rb   R   R   R  RŇ   Rď   R%   (   R   Rb   R%   Rď   (    (    R   t   staticmethodsć  s     			c          C   sż   t  o	 d GHn d  k } d }  h  d d <} | i i |  |   \ } } } t
 | d   t |  |  t | |  | i   i |  |   \ } } } t
 | d   t |  |  t | |  d  S(   Ns!   Testing C-based static methods...i   i   i   R  i{   (   i   i   i   (   R   RÎ   RĎ   R   R%   RĐ   t
   staticmethR   Rĺ   R  R   R1   R   t   d2(   R   R%   RĎ   Rĺ   R   R  R  (    (    R   t   staticmethods_in_c÷  s     		!c             sj  t  o	 d GHn d f  d     Y      }  t   i d    d f  t |  i d    d f  t |  i d  |  d f  d   f d     Y} |   } t | i d  | d f  t | i d  | d f  t | i d  | d f  t | i | d  | d f  d f    d     Y} t |   i   i  t	 t
   i i       i d	   d  S(
   Ns   Testing classic classes...Rb   c           B   s   t  Z d   Z e e  Z RS(   Nc          G   s   |  S(   N(   R   (   R   (    (    R   RŇ     s    (   R(   R)   RŇ   R  R  (    (    (    R   Rb     s   	i   Rď   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rď     s   R  c              s   t  Z   i Z RS(   N(   R(   R)   Rb   RŇ   (    (   Rb   (    R   R    s   s   <bound method (   R   Rb   R   R   R  RŇ   Rď   R%   R  R0   RB   Rř   Rp   (   R   R%   Rb   Rď   R  (    (   Rb   R   t   classic  s      			c          C   s   t  o	 d GHn d t f d     Y} |   }  t |  i d  t |  i d  d |  _ t |  i d  t |  i d  |  ` t t |  d  d  d  S(	   Ns   Testing computed attributes...Rb   c           B   sT   t  Z d e f d     YZ d   Z d   Z d   Z d   Z e e e e  Z RS(   Nt   computed_attributec           B   s5   t  Z d  d  d  Z d  d  Z d   Z d   Z RS(   Nc         C   s   | |  _ | |  _ | |  _ d  S(   N(   RČ   RI   t   _computed_attribute__getR  t   _computed_attribute__sett   deletet   _computed_attribute__delete(   RI   RČ   R  R  (    (    R   RN     s    		c         C   s   |  i |  S(   N(   RI   R  Rx   (   RI   Rx   R   (    (    R   Rř   "  s    c         C   s   |  i | |  S(   N(   RI   R  Rx   Ră   (   RI   Rx   Ră   (    (    R   t   __set__$  s    c         C   s   |  i |  S(   N(   RI   R  Rx   (   RI   Rx   (    (    R   t
   __delete__&  s    (   R(   R)   R1   RN   Rř   R  R  (    (    (    R   R    s   	c         C   s   d |  _ d  S(   Ni    (   RI   t   _C__x(   RI   (    (    R   RN   (  s    c         C   s   |  i } | d |  _ | S(   Ni   (   RI   R  R   (   RI   R   (    (    R   t   __get_x*  s    	c         C   s   | |  _ d  S(   N(   R   RI   R  (   RI   R   (    (    R   t   __set_x.  s    c         C   s
   |  ` d  S(   N(   RI   R  (   RI   (    (    R   t
   __delete_x0  s    (	   R(   R)   R2   R  RN   t	   _C__get_xt	   _C__set_xt   _C__delete_xR   (    (    (    R   Rb     s   				i    i   i
   i   R   (   R   R2   Rb   R   R   R   R´   (   R   Rb   (    (    R   t   compattr  s     			c          C   s   t  o	 d GHn d t f d     Y} |   }  t |  i d  t |  i | j  d | f d     Y} |   } t | i d  t | i | j  d  S(   Ns    Testing __new__ slot override...Rb   c           B   s   t  Z d   Z d   Z RS(   Nc         C   s   t  i |   } d | _ | S(   Ni   (   Rę   RĂ   RÄ   RI   RŇ   (   RÄ   RI   (    (    R   RĂ   ?  s    	c         C   s   |  i d |  _ d  S(   Ni   (   RI   RŇ   (   RI   (    (    R   RN   C  s    (   R(   R)   RĂ   RN   (    (    (    R   Rb   >  s   	i   Rď   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rď   H  s   (
   R   Rę   Rb   R   R   RŇ   R0   R   Rď   R   (   R   Rb   R   Rď   (    (    R   t   newslot<  s     			c             s6  t  o	 d GHn d t f d     Y}  d |  f d     Y} d |  f d     Y} d | | f d	     Y} t | i   | | | |  t g  t | i | | | |  t f  t |   i	   d  d
 t
 f d     Y  d | | | |  f   d     Y} t | i t |  | | | | f  t |   i	   d  d  S(   Ns"   Testing mro() and overriding it...Rh   c           B   s   t  Z d   Z RS(   Nc         C   s   d S(   NRh   (    (   RI   (    (    R   R  Q  s    (   R(   R)   R  (    (    (    R   Rh   P  s   R˙   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R˙   R  s   Rb   c           B   s   t  Z d   Z RS(   Nc         C   s   d S(   NRb   (    (   RI   (    (    R   R  U  s    (   R(   R)   R  (    (    (    R   Rb   T  s   Rď   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rď   V  s   t   PerverseMetaTypec           B   s   t  Z d   Z RS(   Nc         C   s   t  i |   } | i   | S(   N(   R   t   mroRÄ   Ry  t   reverse(   RÄ   Ry  (    (    R   R  ]  s    
(   R(   R)   R  (    (    (    R   R  \  s   R/  c              s   t  Z   Z RS(   N(   R(   R)   R  Rî   (    (   R  (    R   R/  a  s   (   R   R2   Rh   R˙   Rb   Rď   R   R  R*  R  R   R  R/  (   Rh   Rb   R˙   R  R/  Rď   (    (   R  R   t   altmroN  s     	"""c             s  t  o	 d GHn d t f d     Y  d   f   d     Y} |   }  t |  i d  d |  _ t |  i d  |  ` t |  i d  t |  d d  d
 |  d <t |  i	 d  |  d =t |  i
 d  t |  d d !d  d |  d d +t |  i d  |  d d 5t |  i d  d  S(   Ns   Testing operator overloading...R˙   c           B   s   t  Z d  Z RS(   s<   Intermediate class because object doesn't have a __setattr__(   R(   R)   R*   (    (    (    R   R˙   i  s   Rb   c              s_   t  Z d   Z   d   Z   d   Z d   Z d   Z d   Z d   Z d   Z	 d	   Z
 RS(
   Nc         C   s%   | d j o d | f Sn t  d  S(   NRŇ   R   (   R|   RR  (   RI   R|   (    (    R   R}   n  s    c            s7   | d j o | | f |  _ n   i |  | |  Sd  S(   NRŇ   (   R|   Ră   RI   R÷   R˙   R  (   RI   R|   Ră   (   R˙   (    R   R  s  s    c            s.   | d j o | |  _ n   i |  |  Sd  S(   NRŇ   (   R|   RI   R  R˙   R  (   RI   R|   (   R˙   (    R   R  x  s    c         C   s
   d | f S(   Nt   getitem(   Rz   (   RI   Rz   (    (    R   R5   ~  s    c         C   s   | | f |  _ d  S(   N(   Rz   Ră   RI   t   setitem(   RI   Rz   Ră   (    (    R   R"     s    c         C   s   | |  _ d  S(   N(   Rz   RI   t   delitem(   RI   Rz   (    (    R   t   __delitem__  s    c         C   s   d | | f S(   Nt   getslice(   R=   Rč   (   RI   R=   Rč   (    (    R   R     s    c         C   s   | | | f |  _ d  S(   N(   R=   Rč   Ră   RI   t   setslice(   RI   R=   Rč   Ră   (    (    R   R$     s    c         C   s   | | f |  _ d  S(   N(   R=   Rč   RI   t   delslice(   RI   R=   Rč   (    (    R   t   __delslice__  s    (   R(   R)   R}   R  R  R5   R"   RĽ  R   R$   RŠ  (    (   R˙   (    R   Rb   l  s   						R   RŇ   i   R˘  i   i    i
   RŚ  (   s   getattrs   foo(   s   fooi   (   s   getitemi   (   i   i   (   s   getslicei    i
   (   i    i
   s   foo(   i    i
   (   R   R2   R˙   Rb   R   R   RŇ   R÷   R  RŁ  R¤  R§  R¨  (   R   Rb   R˙   (    (   R˙   R   t   overloadingf  s(     	 		

c             s  t  o	 d GHn d t f d     Y    d   t  i   d  d   f    d     Y} | d  } t | i   d  t | i   d  t | i	   d  d t f   d	     Y} t |   i   i  t t   i i   d    i d
   d  S(   Ns   Testing methods...Rb   c           B   s   t  Z d   Z d   Z RS(   Nc         C   s   | |  _  d  S(   N(   R   RI   (   RI   R   (    (    R   RN   ˘  s    c         C   s   |  i S(   N(   RI   R   (   RI   (    (    R   RŇ   ¤  s    (   R(   R)   RN   RŇ   (    (    (    R   Rb   Ą  s   	i   Rď   c              s   t  Z   i Z  i Z RS(   N(   R(   R)   Rb   RŇ   R,  t   c1R  (    (   Rb   RŤ  (    R   Rď   ¨  s   	i   R  c              s   t  Z   i Z RS(   N(   R(   R)   Rb   RŇ   (    (   Rb   (    R   R  Ż  s   s   <bound method (   R   R2   Rb   RŤ  R   RŇ   Rď   R  R,  R  R  R0   RB   Rř   Rp   (   Rb   R  RŤ  R  Rď   (    (   Rb   RŤ  R   t   methods  s     	c          C   s  t  o	 d GHn d t f d     Y} |   }
 |   }	 t |
  t t |
  t |
   t t	 |
 |	  t	 t |
  t |	    t |
 |
  t |
 |	 j  t |
 |
 j  t |
 |	 j  t t
 |
  i d  d j  t t
 |
  t |
   t d |
 j  x$ t d  D] } t | |
 j  qWt d |
 j  d t f d	     Y} |   } |   }  t |  t t |  t |   t t	 | |   t	 t |  t |     t | |  t | |  j  t | | j  t | |  j  t t
 |  i d
  d j  t t
 |  t |   t d | j  x$ t d  D] } t | | j  qRWt d | j  d t f d     Y} | d  } | d  } | d  } t |  t |  t t |  t d   t | |  t | | j  t | | j  t | |  t t	 | |  d  t t	 | |  d  t t	 | |  d  t t
 |  d  t t |  d  | t d   } t d | j  x$ t d  D] } t | | j  qšWt d | j  d t f d     Y} | d  } | d  } | d  } t |  t |  t t |  t d   t | |  t | | j  t | | j  t | |  t t	 | |  d  t t	 | |  d  t t	 | |  d  t t
 |  d  t t |  d  | t d   } t d | j  x$ t d  D] } t | | j  q Wt d | j  d   } | d d  | d d  | d d  | d d  | d d  | d d  d t
 f d     Y} d  k } | i } t   | _ y | d  GHWn t j
 o n Xt d  | | _ d  S(   Ns   Testing special operators...Rb   c           B   s   t  Z d   Z RS(   Nc         C   s0   d | j o
 d j  n o | Sn t  d  S(   Ni    i
   (   R=   t
   IndexError(   RI   R=   (    (    R   R5   š  s     (   R(   R)   R5   (    (    (    R   Rb   ¸  s   s   C object at i    i˙˙˙˙i
   Rď   c           B   s   t  Z d   Z RS(   Nc         C   s0   d | j o
 d j  n o | Sn t  d  S(   Ni    i
   (   R=   R­  (   RI   R=   (    (    R   R5   Ď  s     (   R(   R)   R5   (    (    (    R   Rď   Î  s   s   D object at t   Proxyc           B   sY   t  Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z	 d	   Z
 RS(
   Nc         C   s   | |  _  d  S(   N(   R   RI   (   RI   R   (    (    R   RN   ĺ  s    c         C   s	   |  i S(   N(   RI   R   (   RI   (    (    R   Rş   ç  s    c         C   s   t  |  i  S(   N(   t   hashRI   R   (   RI   (    (    R   t   __hash__é  s    c         C   s   |  i | j S(   N(   RI   R   R¸   (   RI   R¸   (    (    R   t   __eq__ë  s    c         C   s   |  i | j S(   N(   RI   R   R¸   (   RI   R¸   (    (    R   t   __ne__í  s    c         C   s   t  |  i | i  S(   N(   R    RI   R   R¸   (   RI   R¸   (    (    R   R:   ď  s    c         C   s   d |  i S(   Ns   Proxy:%s(   RI   R   (   RI   (    (    R   RĚ   ń  s    c         C   s   d |  i S(   Ns	   Proxy(%r)(   RI   R   (   RI   (    (    R   RC   ó  s    c         C   s   | |  i j S(   N(   Ră   RI   R   (   RI   Ră   (    (    R   R4   ő  s    (   R(   R)   RN   Rş   R°  Rą  R˛  R:   RĚ   RC   R4   (    (    (    R   RŽ  ä  s   								i   s   Proxy:0s   Proxy(0)t   DProxyc           B   sY   t  Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z	 d	   Z
 RS(
   Nc         C   s   | |  _  d  S(   N(   R   RI   (   RI   R   (    (    R   RN     s    c         C   s	   |  i S(   N(   RI   R   (   RI   (    (    R   Rş     s    c         C   s   t  |  i  S(   N(   RŻ  RI   R   (   RI   (    (    R   R°    s    c         C   s   |  i | j S(   N(   RI   R   R¸   (   RI   R¸   (    (    R   Rą    s    c         C   s   |  i | j S(   N(   RI   R   R¸   (   RI   R¸   (    (    R   R˛    s    c         C   s   t  |  i | i  S(   N(   R    RI   R   R¸   (   RI   R¸   (    (    R   R:     s    c         C   s   d |  i S(   Ns	   DProxy:%s(   RI   R   (   RI   (    (    R   RĚ     s    c         C   s   d |  i S(   Ns
   DProxy(%r)(   RI   R   (   RI   (    (    R   RC     s    c         C   s   | |  i j S(   N(   Ră   RI   R   (   RI   Ră   (    (    R   R4     s    (   R(   R)   RN   Rş   R°  Rą  R˛  R:   RĚ   RC   R4   (    (    (    R   Rł    s   								s   DProxy:0s	   DProxy(0)c         C   sJ   y |  i i |  |  Wn t j
 o n Xt d |  i |  | f  d  S(   Ns"   shouldn't allow %s.__cmp__(%r, %r)(   R   R   R:   R   RY   R   (   R   R   (    (    R   t	   unsafecmp4  s
    u   123t   123f1.0l    t   Letterc           B   s   t  Z d   Z d   Z RS(   Nc         C   s.   | d j o t i |   Sn t i |  |  S(   Nt   EPS(   t   letterRF  RĂ   RÄ   (   RÄ   R¸  (    (    R   RĂ   D  s    c         C   s   |  p d Sn |  S(   NRˇ  (   RI   (   RI   (    (    R   RĚ   H  s    (   R(   R)   RĂ   RĚ   (    (    (    R   Rś  C  s   	t   ws+   expected a RuntimeError for print recursion(    R   R2   Rb   RŤ  t   c2R0   R   RŻ  t   idR    RF  t   findRB   R\   R=   Rď   R  R  RŽ  t   p0t   p1t   p_1t   p10Rł  R´  Rś  R   Rm  t   test_stdoutt   get_original_stdoutt   RuntimeErrorR   (   R  R  Rł  RŽ  Rś  Rb   Rď   RŔ  RÁ  Rş  RŤ  Rż  R   R˝  Rž  R=   R´  (    (    R   t   specials´  sÂ     			+ 		+   				c    	      C   sE  t  o	 d GHn d  k } d t f d     Y} |   }  | i |   } t |   |  j  ~  t |   d  j  ~ d t f d     Y} |   } y | i |  Wn4 t j
 o( } t t |  i d  d j  n Xt d d  d	 t f d
     Y} |   } | i |  } t |   | j  ~ t |   d  j  ~ d  S(   Ns   Testing weak references...Rb   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rb   ]  s   t   NoWeakc           B   s   t  Z d g Z RS(   NRŇ   (   R(   R)   RË   (    (    (    R   RĹ  e  s   s   weak referencei    s!   weakref.ref(no) should be illegalt   Weakc           B   s   t  Z d d g Z RS(   NRŇ   Rp  (   R(   R)   RË   (    (    (    R   RĆ  n  s   (   R   t   weakrefR2   Rb   R   t   reft   rR0   R1   RĹ  t   noRY   RE  RF  Rź  RĆ  t   yes(	   R   RĘ  RĆ  Rb   RÇ  RE  RÉ  RË  RĹ  (    (    R   t   weakrefsZ  s0     				$	c    	      C   s  t  o	 d GHn d t f d     Y} |   } t t | d   d | _ t | i d  t | i d  | ` t t | d   t t | d   | i i	 | d  t | i i
 |  d  | i i |  t t | d   | i d }  t t |  t   t |   } t d | j  t d	 | j  t d
 | j  t d | j  t |  i d  t |  i | i d j  t |  i | i d j  t |  i | i d j  x d D]~ } y t |  | d  WnQ t j
 oE } t |  i d  d j  o  t d | t |  f   q9qťXt d |   qťWd t f d     Y} |   } y x | D] } t |  qfWWn t  j
 o n Xt d  d  S(   Ns   Testing property...Rb   c           B   s;   t  Z d   Z d   Z d   Z e e e e d d Z RS(   Nc         C   s   |  i S(   N(   RI   R  (   RI   (    (    R   t   getxz  s    c         C   s   | |  _ d  S(   N(   Ră   RI   R  (   RI   Ră   (    (    R   t   setx|  s    c         C   s
   |  ` d  S(   N(   RI   R  (   RI   (    (    R   t   delx~  s    t   docs   I'm the x property.(   R(   R)   RÍ  RÎ  RĎ  Ru   R   (    (    (    R   Rb   y  s   			R   i*   R  id   R*   t   fgett   fsett   fdels   I'm the x property.RÍ  RÎ  RĎ  t   readonlyi    sL   when setting readonly attr %r on a property, got unexpected TypeError msg %rsD   expected TypeError from trying to set readonly %r attr on a propertyRď   c           B   s   t  Z e d    Z RS(   Nc         C   s   d d S(   Ni   i    (    (   Ro   (    (    R   RJ   Š  s    (   R(   R)   Ru   R5   (    (    (    R   Rď   ¨  s   s,   expected ZeroDivisionError from bad property(   s   __doc__s   fgets   fsets   fdel(!   R   R2   Rb   R   R0   R´   R   R   R  R  Rř   R  R   t   rawRâ   Ru   R   t   attrsR*   RŃ  RŇ  RÓ  t   attrR÷   RY   RE  RF  Rź  R   Rď   R%   R=   t   ZeroDivisionError(	   RŐ  RÖ  RE  Rb   Rď   R×  R   R%   R=   (    (    R   t
   propertiesw  sV     			 %	 c             s  t  o	 d GHn d t f d     Y}  t |    i d  d  d |  f   d     Y  t     i d  d	  d
 |  f d     Y} t |  | _ t |   i d  d  d |   f  d     Y t    i d  d  d t f  d     Y d  f   d     Y t    i d  d  d  f d     Y}  |  | _ t |   i d  d  y t  d  Wn t j
 o n Xt d  y t  |    Wn t j
 o n Xt d  y t   i d  Wn t j
 o n Xt d   y t   i |    Wn t j
 o n Xt d!  d" t f d#     Y}
 d$ |
 f d%     Y}	 |	   } t | i d&  t t |	 |  i d  d' t f d(     Y} d) | f  d*     Y t  i   | i  y t | d+ d Wn t j
 o n Xt d,  d  S(-   Ns   Testing super...Rh   c           B   s   t  Z d   Z RS(   Nc         C   s   d | S(   Ns   A(%r)(   R   (   RI   R   (    (    R   R   ¸  s    (   R(   R)   R   (    (    (    R   Rh   ˇ  s   i   s   A(1)R˙   c              s   t  Z   d   Z d   Z RS(   Nc            s   t    |   |  _ d  S(   N(   Rý   R˙   RI   R   (   RI   (   R˙   (    R   RN   ž  s    c         C   s   d | |  i i |  S(   Ns   B(%r)(   R   RI   R   R   (   RI   R   (    (    R   R   Ŕ  s    (   R(   R)   RN   R   (    (   R˙   (    R   R˙   ˝  s   i   s   B(2)A(2)Rb   c           B   s   t  Z d   Z RS(   Nc         C   s   d | |  i i |  S(   Ns   C(%r)(   R   RI   R  R   (   RI   R   (    (    R   R   Ć  s    (   R(   R)   R   (    (    (    R   Rb   Ĺ  s   i   s   C(3)A(3)Rď   c              s   t  Z   d   Z RS(   Nc            s   d | t   |   i |  S(   Ns   D(%r)(   R   Rý   Rď   RI   R   (   RI   R   (   Rď   (    R   R   Í  s    (   R(   R)   R   (    (   Rď   (    R   Rď   Ě  s   i   s   D(4)C(4)B(4)A(4)t   mysuperc              s   t  Z   d   Z RS(   Nc            s   t    |   i |   S(   N(   Rý   RÚ  RI   RN   RĹ   (   RI   RĹ   (   RÚ  (    R   RN   Ő  s    (   R(   R)   RN   (    (   RÚ  (    R   RÚ  Ô  s   R  c              s   t  Z    d   Z RS(   Nc            s   d |    |   i |  S(   Ns   E(%r)(   R   RÚ  R  RI   R   (   RI   R   (   R  RÚ  (    R   R   Ů  s    (   R(   R)   R   (    (   RÚ  R  (    R   R  Ř  s   i   s   E(5)D(5)C(5)B(5)A(5)R"  c           B   s   t  Z d   Z RS(   Nc         C   s*   |  i } d | | i i f | i |  S(   Ns	   F(%r)[%s](   RI   t	   _F__superRo   R   R   R(   R   (   RI   R   Ro   (    (    R   R   ß  s    	(   R(   R)   R   (    (    (    R   R"  Ţ  s   i   s!   F(6)[mysuper]E(6)D(6)C(6)B(6)A(6)i*   s   shouldn't allow super(D, 42)s   shouldn't allow super(D, C())i   s$   shouldn't allow super(D).__get__(12)s%   shouldn't allow super(D).__get__(C())t   DDbasec           B   s   t  Z d   Z e e  Z RS(   Nc         C   s   d S(   Ni*   (    (   RI   (    (    R   RÍ    s    (   R(   R)   RÍ  Ru   R   (    (    (    R   RÜ    s   	t   DDsubc           B   s   t  Z d   Z e e  Z RS(   Nc         C   s   d S(   NR  (    (   RI   (    (    R   RÍ    s    (   R(   R)   RÍ  Ru   R   (    (    (    R   RÝ    s   	R  t   Basec           B   s   t  Z e d    Z RS(   Nc         C   s   d S(   NRŇ   (    (   RI   (    (    R   RJ     s    (   R(   R)   Ru   t   aProp(    (    (    R   RŢ    s   t   Subc              s    t  Z   d   Z e e  Z RS(   Nc            s   t    |   i S(   N(   Rý   Rŕ  t   klassRß  (   Rá  (   Rŕ  (    R   t   test  s    (   R(   R)   Râ  R  (    (   Rŕ  (    R   Rŕ    s   Rá   s#   super shouldn't accept keyword args(   R   R2   Rh   R   R   R˙   Rb   Rý   R  Rď   RÚ  R  R"  RŰ  RY   R   Rř   RÜ  RÝ  t   ddR   RŢ  Rŕ  R   Râ  Rß  (   Rh   RŢ  Rb   R˙   R"  Ră  Rŕ  RÚ  R  RÝ  RÜ  Rď   (    (   R˙   Rŕ  RÚ  R  Rď   R   t   supers´  sd     						c             sL  t  o	 d GHn d t f  d     Y t t  d  d  d  t t  d  d  d   d	  } t | d	  t t |  d	  t t |  i t j  t t |  t d	   t | 
i t j  t | d
 ?i t j  t | d
 >i t j  t  d
  d >i t j  t  d
  d ?i t j  d t	 f   d     Y  t t   d  d  d  t t d   d   d    d	  } t | d  t t	 |  d  t t |  t d   t t	 |  i t	 j  t | 
i t	 j  t | i t	 j  t   d
  i t	 j  t | d
 ?i t	 j  t | d
 >i t	 j  t | d
 i t	 j  t | d i t	 j  t | d i t	 j  t | d i t	 j  t d | i t	 j  t | d
 Bi t	 j  t | d
 Ai t	 j  t | d @i t	 j  t   d
  d >i t	 j  t   d
  d ?i t	 j  t t   d
   i t	 j  d t	 f d     Y} | d  } t | d
 i t	 j  t d
 | i t	 j  | d  } t | i h   t t	 |  d  d t f d     Y} t t | d   d  | d	  } t | d  t t |  d  t t |  i t j  t t |  t d   t | 
i t j  d t f d     Y} | d  d!  } t t |  d"  t d  d!  } t | i t  t | |  t t |  |  t t |  i t  | |  } t t |  d"  t | |  t t |  |  t t |  i t  t t |  t |   t | 
i t  t | d
 i t  t | d
 |  t | d
 i t  t | d
 |  t | d i t  t | d |  t | d i t  t | d |  d# t f d$     Y} | dK  } t | dL  t | i   | dM   t | i   i   | dN   xK t d(  D]= } | t |   } | i   } | i   } t | |  qŁW| dO  } t t |  dP  t t |  i t j  t t |  t dQ   t | i t j  t | d i t j  t | d
 i t j  t | f  i t j  | f   } t t |  f   t t |  i t j  t | | i t j  t | d
 i t j  t | d i t j  t | d% i t j  t | i t j  d) t f d*     Y}
 |
 d+  } t | d+  t | i   |
 d,   t | i   i   |
 d+   x] t d-  D]O } |
 d. i t  t! t |     } | i   } | i   } t | |  qŞW|
 d/  } t t |  d/  t t |  i t j  d0 d } |
 |  } t | |  t t |  |  t t |  i t j  t t |  t |   t h  | d <| d  t h  | d <| d  t | d. i t j  t | d. |  t d. | i t j  t d. | |  t | d
 i t j  t | d
 d.  t | d i t j  t | d |  t | d% i t j  t | d% | |  t | i t j  t | |  t | d
 d
 !i t j  t | d
 d
 !d.  t | i"   i t j  t | i"   |  t | i#   i t j  t | i#   |  t | i$   i t j  t | i$   |  d. i g  } t d-  D] } | t! |  q~  } t | i' |  i t j  t | i' |  |  t | i' | d1  i t j  t | i' | d1  |  t | i' | d0  d.  t | i( d1 d1  i t j  t | i( d1 d1  |  t | i) t* |   i t j  t | i) t* |   |  t | i+ t* |   i t j  t | i+ t* |   |  t | i, t* |   i t j  t | i, t* |   |  t | i-   i t j  t | i-   |  d2 t. f d3     Y} | d4  } t | d5  t | i   | d6   t | i   i   | d5   d7 } | |  } t t. |  |  t t. |  i t. j  t t |  t |   t h  | d <| d  t h  | d <| d  t | i"   i t. j  t | i"   |  t | i#   i t. j  t | i#   |  t | i$   i t. j  t | i$   |  t | i( d8 d8  i t. j  t | i( d8 d8  |  t | i( d9 d9  i t. j  t | i( d9 d9  |  t | i, t* |   i t. j  t | i, t* |   |  t | i) t* |   i t. j  t | i) t* |   |  t | i+ t* |   i t. j  t | i+ t* |   |  t | i-   i t. j  t | i-   |  t | i0   i t. j  t | i0   |  t | i1   i t. j  t | i1   |  t | i2   i t. j  t | i2   |  t | d: i t. j  t | d: |  t d: | i t. j  t d: | |  t | d
 i t. j  t | d
 d:  t | d i t. j  t | d |  t | d% i t. j  t | d% | |  t | i t. j  t | |  t | d
 d
 !i t. j  t | d
 d
 !d:  d; t3 f d<     Y} | t d   } t | t d   | i5 d=  t | t d  d= g  d | d <t | t d&   | i6 t d& d>   t | t d>   g  | d? )t | t d@   | dA d@ 5t t* |  dA  t | t dA   t t3 |  t dA   t | d
 d
  t | d d  t | dB d
  t | d d  t | d  t d   dC t7 f dD     Y} t7 dE t9 dF dG  } dH dI dJ g }  zą | i< |   | i=   | t9  } x} t> t d d  d! g |  d% d. g  D]Q \ } } | i@   } t | |  t | iB |  t | iC | t* |   j  q¨W| i=   Wd  y | i=   Wn n Xy d  kD } | iE t9  Wn n XXd  S(R   Ns'   Testing inheritance from basic types...t   hexintc              s   t  Z d   Z   d   Z RS(   Nc         C   s
   t  |   S(   N(   Rą   RI   (   RI   (    (    R   RC   ,  s    c            s     t i |  |   S(   N(   Rĺ  RŽ   R   RI   R¸   (   RI   R¸   (   Rĺ  (    R   R   .  s    (   R(   R)   RC   R   (    (   Rĺ  (    R   Rĺ  +  s   	i   i	   t   0x10ič  t   0x3efi90  i    i   t   octlongc              s)   t  Z g  Z d   Z   d   Z e Z RS(   Nc         C   s/   t  |   } | d d j o | d  } n | S(   Ni˙˙˙˙Ry  (   R°   RI   Ro   (   RI   Ro   (    (    R   RĚ   A  s    c            s   |  i t   |   i |   S(   N(   RI   R   Rý   Rč  R   R¸   (   RI   R¸   (   Rč  (    R   R   F  s    (   R(   R)   RË   RĚ   R   t   __radd__(    (   Rč  (    R   Rč  ?  s   	i   i   t   010i¸  t   05675l   90i   l˙˙˙˙ t	   longclonec           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rě  e  s   i˙˙˙˙t	   precfloatc           B   s)   t  Z d g Z d d d  Z d   Z RS(   NRÁ   f0.0i   c         C   s    t  |  |  _ t i |  d  S(   N(   RŽ   RÁ   RI   RŻ   RN   Ră   (   RI   Ră   RÁ   (    (    R   RN   r  s    c         C   s   d |  i |  f S(   Ns   %.*g(   RI   RÁ   (   RI   (    (    R   RC   u  s    (   R(   R)   RË   RN   RC   (    (    (    R   Rí  p  s   	f1.1000000000000001s   1.1f12345.0t
   madcomplexc           B   s   t  Z d   Z RS(   Nc         C   s   d |  i |  i f S(   Ns   %.17gj%+.17g(   RI   RÉ   RĘ   (   RI   (    (    R   RC     s    (   R(   R)   RC   (    (    (    R   Rî    s   iý˙˙˙i   s   4j-3t   madtuplec           B   s   t  Z d  Z d   Z RS(   Nc         C   sJ   |  i d  j	 o |  i Sn t |   } | i   |  i |  |  _ |  i S(   N(   RI   t   _revR1   Rę   Ry  R   R   (   RI   Ry  (    (    R   t   rev  s    
(   R(   R)   R1   Rđ  Rń  (    (    (    R   Rď    s   i   i   i   i   t	   madstringc           B   s   t  Z d  Z d   Z RS(   Nc         C   sS   |  i d  j	 o |  i Sn t |   } | i   |  i d i |   |  _ |  i S(   NRš   (   RI   Rđ  R1   Rę   Ry  R   R   t   join(   RI   Ry  (    (    R   Rń  ž  s    
(   R(   R)   R1   Rđ  Rń  (    (    (    R   Rň  ź  s   t   abcdefghijklmnopqrstuvwxyzt   zyxwvutsrqponmlkjihgfedcbai   Rš   t   12345t    R   t
   madunicodec           B   s   t  Z d  Z d   Z RS(   Nc         C   sS   |  i d  j	 o |  i Sn t |   } | i   |  i d i |   |  _ |  i S(   Nu    (   RI   Rđ  R1   Rę   Ry  R   R   Ró  (   RI   Ry  (    (    R   Rń  	  s    
(   R(   R)   R1   Rđ  Rń  (    (    (    R   Rř  ˙  s   t   ABCDEFu   ABCDEFu   FEDCBAu   12345u   xu   xyu    t   sublistc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rú  :	  s   R  i   iű˙˙˙i   i
   iö˙˙˙t   CountedInputc           B   s#   t  Z d  Z d Z d Z d   Z RS(   s  Counts lines read by self.readline().

        self.lineno is the 0-based ordinal of the last line read, up to
        a maximum of one greater than the number of lines in the file.

        self.ateof is true if and only if the final "" line has been read,
        at which point self.lineno stops incrementing, and further calls
        to readline() continue to return "".
        i    c         C   sN   |  i o d Sn t i |   } |  i d 7_ | d j o d |  _ n | S(   NRš   i   (   RI   t   ateoft   filet   readlineRo   t   lineno(   RI   Ro   (    (    R   Rţ  ]	  s    
(   R(   R)   R*   R˙  Rü  Rţ  (    (    (    R   Rű  P	  s   	 R|   t   modeRš  s   a
s   b
s   c
(
   i   i   i   i   i   i   i   i   i	   i    (
   i   i   i   i   i   i   i   i   i	   i    (
   i    i	   i   i   i   i   i   i   i   i   (
   i   i   i   i   i   i   i   i   i	   i    (   i   i   i   i   i   (   i   i   i   i   i   (   i   i   i   i   i   (F   R   RŽ   Rĺ  R   RB   R   R0   R   RŻ  RU   Rč  RF  RŤ   Rě  R   RŻ   Rí  RÂ   Rî  t   baseR   t   tupleRď  Rń  R\   R=   R   t   uRŰ   Rň  Ro   Ró  t   mapt   chrt   stript   lstript   rstripR]   t   identitytabt	   translatet   replacet   ljustR{   t   rjustt   centert   lowert   unicodeRř  t   uppert
   capitalizet   titleRę   Rú  R>   Rë   Rý  Rű  t   TESTFNR  t   linest
   writelinest   closeR[   RG  Rţ  t   gotR˙  Rü  t   ost   unlink(   R  Rú  Rű  Rč  R  Rí  R	  Rě  RG  Rĺ  Rň  Ro   R  Rî  Rř  R  R   R  R=   R]   Rď  R   RŰ   R  (    (   Rč  Rĺ  R   t   inherits(  s     	
	 	 $
6"""	"""



+   	c       	   C   sH  t  o	 d GHn t t d d  d  t t d d  d  t t d d  d  t t d d	 d
 d  t d d	   t t d d  d  t t d d d d  d  t t d t	 d   d  t t
 d d  t	 d   x` t t t t t t t t
 t f	 D]= }  y |  d d  Wn t j
 o qXt d |    qWd  S(   Ns3   Testing keyword args to basic type constructors ...R   i   i   f2.0i   l    RÉ   i*   RĘ   i  R2   iô  t   500t   stringR  R  t   strictu   abct   sequencei    t   bogus_keyword_args4   expected TypeError from bogus keyword argument to %r(   i    i   i   (   i    i   i   (   R   R   RŽ   RŻ   RU   RÂ   RF  R  R  R\   Rę   Rý  t   constructorRY   R   (   R!  (    (    R   t   keywords	  s"    	%" c    
      C   s2  d  Sd  k  } t o	 d GHn | i   } d t }  d t } d t t f } t t d  } | i
   z  x |  | | f D] } y | i |  WnA t j
 o5 } t |  i d  d j o
 d }	 qÚ d	 }	 n Xd
 }	 |	 d j o t d |	 | f   qy qy WWd  y d  k } | i t  Wn n XXd  S(   Ns1   Testing interaction with restricted execution ...s   f = open(%r, 'w')s   f = file(%r, 'w')s   f = open(%r)
t = type(f)  # a sneaky way to get the file() constructor
f.close()
f = t(%r, 'w')  # rexec can't catch this by itself
Rš  t
   restrictedi    t   OKs)   got an exception, but not an expected ones)   expected a restricted-execution exceptions	   %s, in %r(   t   rexecR   t   RExect   sandboxR  t   code1t   code2t   code3t   openR  R  t   codet   r_exect   IOErrorRE  RF  Rź  t   outcomeR   R  R  (
   R(  R)  R*  R  R  R'  R,  R%  RE  R/  (    (    R   R#  	  s8    		


 
" 	c             s  t  o	 d GHn d t f   d     Y  t   d  d  t d   d   t t   d   d  h    d  d <  d	  d
 <  d  d <} t |   d  d  t |   d  d
  t |   d  d  t   d  | j  t | i   d   d  d  S(   Ns*   Testing a str subclass used as dict key ..t   cistrc              s,   t  Z d  Z d   Z   d   Z d   Z RS(   s   Sublcass of str that computes __eq__ case-insensitively.

        Also computes a hash code of the string in canonical form.
        c         C   s%   | i   |  _ t |  i  |  _ d  S(   N(   Ră   R  RI   t	   canonicalRŻ  t   hashcode(   RI   Ră   (    (    R   RN   Ë	  s    c            s0   t  |    p   |  } n |  i | i j S(   N(   Râ   R¸   R0  RI   R1  (   RI   R¸   (   R0  (    R   Rą  Ď	  s    c         C   s   |  i S(   N(   RI   R2  (   RI   (    (    R   R°  Ô	  s    (   R(   R)   R*   RN   Rą  R°  (    (   R0  (    R   R0  Ĺ	  s    	t   ABCR  t   aBcRE   i   RF   i   t   tHreei   t   tWot   THrEEt   ONet   thrEE(   R   RF  R0  R   R%   R0   RČ   (   R0  R%   (    (   R0  R   t   str_subclass_as_dict_keyÁ	  s    	3c    
   	      sÁ  t  o	 d GHn d f  d     Y} x| t t f D]} t  o d | GHn d | f   d     Y    d  }   d  }   d	  } t	 | d  h  d | <d | <d	 | <} xţ d D]ö } xí d D]ĺ } t t | | | |  t | |  j d
 | | f  x? d D]7 }	 t t d |	  t d |	  j d
 | | f  qWt t | | |  t | |  j d
 | | f  t t | | |  t | |  j d
 | | f  qĚ Wqż Wq3 Wd  S(   Ns   Testing classic comparisons...R  c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R  ä	  s   s           (base = %s)Rb   c              s   t  Z d   Z   d   Z RS(   Nc         C   s   t  |  |  _ d  S(   N(   RŽ   Ră   RI   (   RI   Ră   (    (    R   RN   é	  s    c            s_   t  |    o t |  i | i  Sn t  | t  p t  | t  o t |  i |  Sn t S(   N(	   Râ   R¸   Rb   R    RI   Ră   RŽ   RU   Rˇ   (   RI   R¸   (   Rb   (    R   R:   ë	  s
     (   R(   R)   RN   R:   (    (   Rb   (    R   Rb   č	  s   	i   i   i   s
   x=%d, y=%dR˘   s   <=s   ==s   !=R§   s   >=s   c[x] %s c[y]s   x %s y(   i   i   i   (   i   i   i   (   R˘   s   <=s   ==s   !=R§   s   >=(   R   R  RŽ   R2   R  Rb   RŤ  Rş  t   c3R   R   R   t   yR0   R    t   opR   (
   Rb   R  R   R<  R  R   R;  Rş  RŤ  R=  (    (   Rb   R   t   classic_comparisonsâ	  s0     	  	!  7  3c       	      s  t  o	 d GHn d t f d     Y} | d  } t | d d  t d d |  d t f d     Y} | d  } t | d d  t d d |  d	 f  d
     Y}  x_|  t t	 t
 f D]K} t  o d | GHn d | f   d     Y    d  }   d  }   d  } t | d  h  d | <d | <d | <}	 xĂ d D]ť } x˛ d D]Ş }
 xĄ d D] } t t d |  t d |  j d | |
 f  t t d |  t d |  j d | |
 f  t t d |  t d |  j d | |
 f  qdWqWWqJWqž Wd  S(   Ns   Testing rich comparisons...R1  c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R1  
  s   i   x0.00.0t   ZZc           B   s   t  Z d   Z RS(   Nc         C   s*   y t  |  |  d j SWn t Sn Xd  S(   Nf9.9999999999999995e-07(   RŤ   RI   R¸   Rˇ   (   RI   R¸   (    (    R   Rą  
  s    (   R(   R)   Rą  (    (    (    R   R?  
  s   f	1.0000003R  c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R  
  s   s           (base = %s)Rb   c              sb   t  Z d   Z d   Z   d   Z   d   Z   d   Z   d   Z   d   Z   d   Z	 RS(	   Nc         C   s   t  |  |  _ d  S(   N(   RŽ   Ră   RI   (   RI   Ră   (    (    R   RN   
  s    c         C   s   t  d  d  S(   Ns   shouldn't call __cmp__(   R   (   RI   R¸   (    (    R   R:   
  s    c            sY   t  |    o |  i | i j Sn t  | t  p t  | t  o |  i | j Sn t S(   N(   Râ   R¸   Rb   RI   Ră   RŽ   RU   Rˇ   (   RI   R¸   (   Rb   (    R   Rą  
  s
     c            sY   t  |    o |  i | i j Sn t  | t  p t  | t  o |  i | j Sn t S(   N(   Râ   R¸   Rb   RI   Ră   RŽ   RU   Rˇ   (   RI   R¸   (   Rb   (    R   R˛   
  s
     c            sY   t  |    o |  i | i j  Sn t  | t  p t  | t  o |  i | j  Sn t S(   N(   Râ   R¸   Rb   RI   Ră   RŽ   RU   Rˇ   (   RI   R¸   (   Rb   (    R   t   __lt__&
  s
     c            sY   t  |    o |  i | i j Sn t  | t  p t  | t  o |  i | j Sn t S(   N(   Râ   R¸   Rb   RI   Ră   RŽ   RU   Rˇ   (   RI   R¸   (   Rb   (    R   t   __le__,
  s
     c            sY   t  |    o |  i | i j Sn t  | t  p t  | t  o |  i | j Sn t S(   N(   Râ   R¸   Rb   RI   Ră   RŽ   RU   Rˇ   (   RI   R¸   (   Rb   (    R   t   __gt__2
  s
     c            sY   t  |    o |  i | i j Sn t  | t  p t  | t  o |  i | j Sn t S(   N(   Râ   R¸   Rb   RI   Ră   RŽ   RU   Rˇ   (   RI   R¸   (   Rb   (    R   t   __ge__8
  s
     (
   R(   R)   RN   R:   Rą  R˛  R@  RA  RB  RC  (    (   Rb   (    R   Rb   
  s   		i   i   R˘   s   <=s   ==s   !=R§   s   >=s   c[x] %s c[y]s   x %s ys
   x=%d, y=%ds	   c[x] %s ys	   x %s c[y](   i   i   i   (   i   i   i   (   R˘   s   <=s   ==s   !=R§   s   >=(   R   RÂ   R1  Rc  R   R?  t   zzR  RŽ   R2   Rę   R  Rb   RŤ  Rş  R;  R   R   R<  R=  R0   R   (   R  RD  R?  Rb   R  R;  Rş  RŤ  R1  R   R<  R   Rc  R=  (    (   Rb   R   t   rich_comparisons˙	  sB    	  )!      c          C   sč  t  o	 d GHn d t f d     Y} t | d  d  t d | d   d t f d     Y} t | d  d  t | d  d  t d | d   t d | d   d t f d	     Y} t | d  d  t | d  d  t | d  d
  t d | d   t d | d   t d
 | d   d t f d     Y}  t |  d  d  t |  d  d  t |  d  d
  t |  d  d  t d |  d   t d |  d   t d
 |  d   t d |  d   d  S(   Ns   Testing coercions...Rw  c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rw  O
  s    i    Ry  c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Ry  R
  s    l    R"  c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R"  W
  s    f0.0Rb   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rb   ^
  s    x0.00.0(
   R   RŽ   Rw  t   coerceRU   Ry  RŻ   R"  RÂ   Rb   (   Rb   Rw  R"  Ry  (    (    R   t	   coercionsM
  s4     	c          C   s=   t  o	 d GHn d   }  |  t i d  |  t i d  d  S(   Ns!   Testing descriptor doc strings...c         C   s   t  |  i |  d  S(   N(   R   t   descrR*   t   what(   RH  RI  (    (    R   t   checkj
  s    s   True if the file is closeds	   file name(   R   RJ  Rý  t   closedR|   (   RJ  (    (    R   t   descrdoch
  s
     		c    
      C   sŇ  t  o	 d GHn d t f d     Y}  d t f d     Y}	 d t f d     Y} d |	 | f d	     Y} xx |  |	 | | f D]d } x[ |  |	 | | f D]G } |   } | | _	 t
 | i	 | j  | | _	 t
 | i	 | j  q Wq~ Wd
   } | |    t  | t   |   | |    d  | |    t  | t   t  | t   t  d t f d     Y} | d |  | |   t  | t t  | d t  t   } | | t d   | | t d    ~ d  S(   Ns   Testing __class__ assignment...Rb   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rb   q
  s    Rď   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rď   r
  s    R  c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R  s
  s    R"  c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R"  t
  s    c         C   sn   y | |  _ Wn t j
 o n Xt d |  | f  y t |  d  Wn t j
 o n Xt d |   d  S(   Ns!   shouldn't allow %r.__class__ = %rR   s    shouldn't allow del %r.__class__(   Rb   R   R   RY   R   R  (   R   Rb   (    (    R   t   cant|
  s    i   t   Intc           B   s   t  Z g  Z RS(   N(   R(   R)   RË   (    (    (    R   RN  
  s    i   (   R   R2   Rb   Rď   R  R"  RÄ   t   cls2R   R   R0   RM  Rę   RŽ   RN  t   Truet   boolt   oR   R1   (
   Rb   R  R"  RN  RO  RR  RM  R   RÄ   Rď   (    (    R   t   setclasso
  s>     	  					c          C   s   t  o	 d GHn d t f d     Y} |   }  h  d d <|  _ t |  i d  d   } | |  d   | |  g   | |  d  |  ` | | h   d  S(   Ns   Testing __dict__ assignment...Rb   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rb   
  s    R   i   c         C   s:   y | |  _ Wn t j
 o n Xt d |  | f  d  S(   Ns    shouldn't allow %r.__dict__ = %r(   R
   R   R   RY   R   (   R   R
   (    (    R   RM  
  s
    (	   R   R2   Rb   R   R   R   R   RM  R1   (   R   Rb   RM  (    (    R   t   setdict
  s     			c          C   si  t  o	 d GHn d  k } d  k } d   } d t f d     Ya d t f d     Ya d t f d     Ya	 d	 t f d
     Ya
 d f  d     Ya d t t f d     Ya xX| | f D]J} xAd D]9} t  o | i Gd d g | GHn xH t t t	 f D]7 } | i | |  }	 | i |	  }  t |  | j  q Wt d d  } | i d  | i d  t	 d d d  } | i | | f |  }	 | i |	  \ } } t | i | i  t | | i  | | i   t | i | i  t | | i  | | i   t t |  t |   t t |  t |   t  o d G| GHd G| GHn t
 d  }
 | i |
 |  }	 | i |	  } t! |
 i | i  t |
 i" | i"  t   }
 d |
 _" | i |
 |  }	 | i |	  } t! |
 i | i  t |
 i" | i"  qÉ Wqź Wt  o	 d GHn d  k# } x6 t t t	 f D]% } | i$ |  }  t |  | j  q3Wt d d  } | i d  | i d  t	 d d d  } | i$ | | f  \ } } t | i | i  t | | i  | | i   t | i | i  t | | i  | | i   t t |  t |   t t |  t |   t  o d G| GHd G| GHn d  S(   Ns=   Testing pickling and copying new-style classes and objects...c         C   s   |  i   } | i   | S(   N(   R%   RV   Ry  t   sort(   R%   Ry  (    (    R   t   sorteditems˛
  s    
Rb   c           B   s   t  Z d   Z d   Z RS(   Nc         C   s)   t  t |   i   | |  _ | |  _ d  S(   N(   Rý   Rb   RI   RN   R   R   (   RI   R   R   (    (    R   RN   š
  s    	c         C   s   d |  i |  i f S(   Ns	   C(%r, %r)(   RI   R   R   (   RI   (    (    R   RC   ˝
  s    (   R(   R)   RN   RC   (    (    (    R   Rb   ¸
  s   	RU  c           B   s,   t  Z d   Z d   Z d   Z d   Z RS(   Nc         C   s   t  t |   i |   S(   N(   Rý   RU  RÄ   RĂ   (   RÄ   R   R   (    (    R   RĂ   Â
  s    c         C   s   |  i |  i f S(   N(   RI   R   R   (   RI   (    (    R   t   __getnewargs__Ä
  s    c         C   s   | |  _  | |  _ d  S(   N(   R   RI   R   (   RI   R   R   (    (    R   RN   Ć
  s    	c         C   s   d |  i |  i t |   f S(   Ns   C1(%r, %r)<%r>(   RI   R   R   Rę   (   RI   (    (    R   RC   É
  s    (   R(   R)   RĂ   RW  RN   RC   (    (    (    R   RU  Á
  s   			Rr  c           B   s2   t  Z d d  Z d   Z d d  Z d   Z RS(   Ni    c         C   s   t  t |   i |  |  S(   N(   Rý   Rr  RÄ   RĂ   R  (   RÄ   R   R   R  (    (    R   RĂ   Î
  s    c         C   s   |  i |  i t |   f S(   N(   RI   R   R   RŽ   (   RI   (    (    R   RW  Đ
  s    c         C   s   | |  _  | |  _ d  S(   N(   R   RI   R   (   RI   R   R   R  (    (    R   RN   Ň
  s    	c         C   s   d |  i |  i t |   f S(   Ns   C2(%r, %r)<%r>(   RI   R   R   RŽ   (   RI   (    (    R   RC   Ő
  s    (   R(   R)   RĂ   RW  RN   RC   (    (    (    R   Rr  Í
  s   	RV  c           B   s#   t  Z d   Z d   Z d   Z RS(   Nc         C   s   | |  _  d  S(   N(   RŇ   RI   (   RI   RŇ   (    (    R   RN   Ú
  s    c         C   s   |  i S(   N(   RI   RŇ   (   RI   (    (    R   t   __getstate__Ü
  s    c         C   s   | |  _  d  S(   N(   RŇ   RI   (   RI   RŇ   (    (    R   t   __setstate__Ţ
  s    (   R(   R)   RN   RX  RY  (    (    (    R   RV  Ů
  s   		t	   C4classicc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   RZ  â
  s   RW  c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   RW  ä
  s   i    i   t   textt   binaryi   i*   i   R  R  s   a = x =s   b = y =R    (   i    i   (%   R   t   picklet   cPickleRV  R2   Rb   Rę   RU  RŽ   Rr  RV  RZ  RW  t   pt   binR(   RÄ   t   dumpsRo   t   loadsRO  R0   R   R>   R   R   R<  R   R   R   RB   R  RŰ   R   RŇ   RÓ   R    (   RO  R^  RÄ   R`  RV  RÓ   R   R   R_  Ro   R  RŰ   R<  R   R]  (    (    R   t   pickles­
  s    		        )					 )	c          C   sk  t  o	 d GHn d  k } d  k }  d t f d     Ya x,t t g D]} d | f d     Ya d t f d     Ya y | i t    Wn t	 j
 o n Xt
 d |  y |  i t    Wn t	 j
 o n Xt
 d	 |  y | i t    Wn t	 j
 o n Xt
 d
 |  y |  i t    Wn t	 j
 o n Xt
 d |  d | f d     Ya d t f d     Ya t   } | i | i |   } t t | d  d  |  i |  i |   } t t | d  d  d | _ | i | i |   } t | i d  |  i |  i |   } t | i d  t   } d | _ d | _ | i | i |   } t | i | i d  |  i |  i |   } t | i | i d  d t f d     Ya t   } d | _ d | _ | i | i |   } t | i | i  t | i | i  |  i |  i |   } t | i | i  t | i | i  qE Wd  S(   Ns.   Testing pickling of classes with __slots__ ...R˙   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R˙   &  s   Rb   c           B   s   t  Z d g Z RS(   NR   (   R(   R)   RË   (    (    (    R   Rb   )  s   Rď   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rď   +  s   s#   should fail: pickle C instance - %ss$   should fail: cPickle C instance - %ss#   should fail: pickle D instance - %ss$   should fail: cPickle D instance - %sc           B   s#   t  Z d g Z d   Z d   Z RS(   NR   c         C   s   y |  i i   } Wn t j
 o h  } n Xxa |  i i D]S } xJ | i i d f   D]3 } y t
 |  |  | | <WqX t j
 o qX XqX Wq< W| S(   NRË   (   RI   R   RÓ   R%   RR  R   R*  RÄ   RČ   t   snR   (   RI   R%   Rd  RÄ   (    (    R   RX  H  s      c         C   s1   x* | i   D] \ } } t |  | |  q Wd  S(   N(   R%   RV   RÚ   RŰ   R÷   RI   (   RI   R%   RÚ   RŰ   (    (    R   RY  T  s     (   R(   R)   RË   RX  RY  (    (    (    R   Rb   F  s   		c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rď   W  s   R   i    i*   id   i   R  c           B   s   t  Z d g Z RS(   NR   (   R(   R)   RË   (    (    (    R   R  l  s   RŇ   (   R   R]  R^  R2   R˙   R  Rb   Rď   Ra  RY   R   R   Rb  R<  R   R´   R   R   R  (   R^  R  R   R<  R]  (    (    R   t   pickleslots!  st     	  								c          C   sü   t  o	 d GHn d  k } d t f d     Y} |   }  d |  _ | i |   } t | i |  i  d d d g |  _	 | i |   } t | i	 |  i	  t | i	 |  i	 j  | i |   } t | i |  i  |  i	 i d  t | i	 d d d g  d  S(	   Ns*   Testing copy.copy() and copy.deepcopy()...Rb   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rb   {  s   i   i   i   i   i   (   R   RÓ   R2   Rb   R   RŇ   R   R   R   RÜ   R   R0   R    R%   R>   (   R   Rb   R   R   RÓ   R%   (    (    R   t   copiesx  s      				c             s.  t  o	 d GHn d t f   d     Y  t t   d    d   d  t t   d  d  d  t t d   d   d  t t   d    d   d  t t d   d   d  t t   d  d  d  t t t   d    d    d	    d  d
 t f d     Y} d  S(   Ns)   Testing overrides of binary operations...Rw  c              sA   t  Z d   Z   d   Z e Z d    d  Z d    d  Z RS(   Nc         C   s   d t  |   S(   Ns   I(%r)(   RŽ   RI   (   RI   (    (    R   RC     s    c            s     t |   t |   S(   N(   Rw  RŽ   RI   R¸   (   RI   R¸   (   Rw  (    R   R     s    c            s\   | d  j o#   t t |   t |    Sn)   t t |   t |  t |    Sd  S(   N(   R   R1   Rw  R   RŽ   RI   R¸   (   RI   R¸   R   (   Rw  (    R   t   __pow__  s    #c            s_   | d  j o&   t t |  t |   |   Sn)   t t |  t |   t |    Sd  S(   N(   R   R1   Rw  R   RŽ   R¸   RI   (   RI   R¸   R   (   Rw  (    R   t   __rpow__  s    &(   R(   R)   RC   R   Ré  R1   Rg  Rh  (    (   Rw  (    R   Rw    s
   	i   i   s   I(3)i   s   I(8)i   t   Sc           B   s   t  Z d   Z RS(   Nc         C   s   |  i   | i   j S(   N(   RI   R  R¸   (   RI   R¸   (    (    R   Rą  ¨  s    (   R(   R)   Rą  (    (    (    R   Ri  §  s   (   R   RŽ   Rw  R   RB   R   RF  Ri  (   Rw  Ri  (    (   Rw  R   t   binopoverride  s     	##1c          C   s×  t  o	 d GHn d t f d     Y}  d |  f d     Y} d |  f d     Y} d | | f d	     Y} |   } t t |  t	 |   d
   |  _
 t t |  d  d   | _
 t t |  d  d   | _
 t t |  d  d   | _
 t t |  d  | `
 t t |  d  | `
 t t |  d  | `
 t t |  d  |  `
 t t |  t	 |   d | _ d | _ t | i d  t | i d  d   } | |  _ t | i d  t | i d  d   } | | _ t | i d  t | i d  t | i d  |  ` t | i d  | ` t | i d  t | i d  | ` y | i Wn t j
 o n Xt d  d  k } d t f d     Y}  d |  f d     Y} ~ | i   d   |  _ d  S(   Ns6   Testing propagation of slot functions to subclasses...Rh   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rh   ­  s   R˙   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R˙   Ż  s   Rb   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rb   ą  s   Rď   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rď   ł  s   c         C   s   d S(   Ni*   (    (   RI   (    (    R   RJ   ˇ  s    i*   c         C   s   d S(   Ni:  (    (   RI   (    (    R   RJ   š  s    i:  c         C   s   d S(   Ni   (    (   RI   (    (    R   RJ   ť  s    i   c         C   s   d S(   Nid   (    (   RI   (    (    R   RJ   ˝  s    id   c         C   s%   | d j o d Sn t i |  |  S(   NRŇ   i   (   R|   R2   R  RI   (   RI   R|   (    (    R   R  Ë  s    i   c         C   s"   | d j o d Sn t |  d  S(   NRĎ   RŇ   RÜ   R  (   s   spams   foos   bar(   R|   RR  (   RI   R|   (    (    R   R}   Ň  s    R  s   d.foo should be undefined nowc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rh   é  s   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R˙   ë  s   c          G   s   d  S(   N(   R1   (   R   (    (    R   RJ   ď  s    (   R   R2   Rh   R˙   Rb   Rď   R%   R   RŻ  Rť  R°  RŇ   RÜ   R  R}   RĎ   RR  R   Rd  Re  R"   (   Rh   Rb   R˙   R  R}   R%   Rd  Rď   (    (    R   t   subclasspropagationŤ  sl     										
c          C   s   d  k  }  t o	 d GHn d t f d     Y} d } | |  } t |  i |  |  i |   d t f d     Y} d } | |  } t |  i |  |  i |   d t
 f d	     Y} | d
  } y |  i |  t d   Wn t j
 o n Xd  S(   Ns.   Testing that buffer interface is inherited ...t   MyStrc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rl  ÷  s   R  t   MyUnic           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rm    s   u   abct   MyIntc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rn    s   i*   s2   subclass of int should not have a buffer interface(   t   binasciiR   RF  Rl  R  R   R   t   b2a_hexR  Rm  RŽ   Rn  R   RY   (   Ro  R   R  Rn  Rl  Rm  (    (    R   t   buffer_inheritń  s$    		c             s2  d  k    d  k }  t o	 d GHn d t f   d     Y} | d  } t t |  |  t t t |   t  t t t |   t  t t	 |  d  t t |  d  t t |  d  t | i
   d  t | i   d  |  i   } | | IJ| t |  IJt | i   d  | i   d  S(	   Ns.   Testing __str__ defined in subclass of str ...t   octetstringc              s   t  Z   d   Z d   Z RS(   Nc            s     i |   S(   N(   Ro  Rp  RI   (   RI   (   Ro  (    R   RĚ     s    c         C   s   |  d S(   Ns    repr(   RI   (   RI   (    (    R   RC     s    (   R(   R)   RĚ   RC   (    (   Ro  (    R   Rr    s   Rh   iA   t   41s   A reprs   41
41
(   Ro  t	   cStringIOR   RF  Rr  RR  R   R   RB   t   ordRĚ   RC   t   StringIOt   capturet   getvalueR  (   Rt  Rr  Ro  RR  Rw  (    (   Ro  R   t   str_of_str_subclass  s&    			
c          C   sn   t  o	 d GHn d   } t | i d d  d  g  }  t i |  d d d d g t |  d d d g  d  S(	   Ns2   Testing keyword arguments to __init__, __call__...c         C   s   |  S(   N(   R   (   R   (    (    R   R  0  s    R   i*   R  i    i   i   (   R   R  R   Rů   R   Rę   RN   (   R   R  (    (    R   t   kwdargs.  s     		c          C   sf   t  o	 d GHn d t f d     Y}  |    |  _ y |      Wn t j
 o n Xt d   d  S(   Ns@   Testing recursive __call__() by setting to instance of class ...Rh   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rh   9  s   s7   Recursion limit should have been reached for __call__()(   R   R2   Rh   Rů   RĂ  R   (   Rh   (    (    R   t   recursive__call__6  s     	c             sĽ   t  o	 d GHn g    d t f   d     Y} |   }  t   g   ~  t   d g  d t f d     Y} |   } y | d =Wn t j
 o n Xt	 d  d  S(	   Ns   Testing __del__ hook...Rb   c              s   t  Z   d   Z RS(   Nc            s     i d  d  S(   Ni   (   R  R>   (   RI   (   R  (    R   R`  I  s    (   R(   R)   R`  (    (   R  (    R   Rb   H  s   i   Rď   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rď   P  s    i    s$   invalid del() didn't raise TypeError(
   R   R  R2   Rb   R   R   Rď   R%   RY   R   (   R   Rb   Rď   R%   R  (    (   R  R   t   delhookE  s     			  c          C   sŹ   t  o	 d GHn d t f d     Y} |   } y t |  Wn t j
 o n Xt d  d t f d     Y}  |    } y t |  Wn t j
 o n Xt d  d  S(   Ns%   Testing hash of mutable subclasses...t   mydictc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R}  Y  s   s#   hash() of dict subclass should failt   mylistc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R~  c  s   s#   hash() of list subclass should fail(	   R   R
   R}  R%   RŻ  RY   R   Rę   R~  (   R~  R}  R%   (    (    R   t   hashinheritV  s      				c           C   s  y d d Wn t  j
 o n Xt d  y d i d  Wn t j
 o n Xt d  y d i d g  Wn t  j
 o n Xt d  y d i d  Wn t j
 o n Xt d	  y d
 d  Wn t  j
 o n Xt d  y d h  Wn t j
 o n Xt d  y d d Wn t  j
 o n Xt d  y d d Wn t  j
 o n Xt d  y d d Wn t  j
 o n Xt d  y d d  Wn t j
 o n Xt d  t d i   d  t d i   d  t d d d  t d d d  d  S(   NR   i   s   '' + 5 doesn't raise TypeErrorRš   s%   ''.split('') doesn't raise ValueErrori    s$   ''.join([0]) doesn't raise TypeErrort   5s'   ''.rindex('5') doesn't raise ValueErrors   %(n)ss&   '%(n)s' % None doesn't raise TypeErrors   %(ns&   '%(n' % {} '' doesn't raise ValueErrors   %*sR  s'   '%*s' % ('abc') doesn't raise TypeErrors   %*.*ss,   '%*.*s' % ('abc', 5) doesn't raise TypeErrors   %si   i   s%   '%s' % (1, 2) doesn't raise TypeErrorR   s#   '%' % None doesn't raise ValueErrort   534253t   534253xs   %cs   (   s   abci   (   i   i   (	   RY   R   t   splitRZ   Ró  t   rindexR1   R   t   isdigit(    (    (    R   t   stropsm  sl      	  	  	  	  	  	  	  	  	  	c          C   sW   t  o	 d GHn d f  d     Y}  |    } |    } | | _ | | _ t |  } d  S(   Ns(   Testing deepcopy of recursive objects...R  c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R    s   (   R   R  R   R   R    Rc  (   R  R   R   Rc  (    (    R   t   deepcopyrecursive  s     					c          C   sŽ   t  o	 d GHn d k l }  |  i |   } t |  t t | d  d  t t | d  d  t t | d  d  t | i	 d   d | _ t | i	 h  d d < d  S(   Ns'   Testing uninitialized module objects...(   s
   ModuleTypeR(   i    t   __file__RŇ   i   (   R   t   typest
   ModuleTypeRr   RĂ   R   RF  R   R´   R   R1   RŇ   (   Rr   R   (    (    R   t   modulesĽ  s     	
	c          C   sz   d t  f d     Y}  t o	 d GHn g  } |  i i   D] } | | q: ~ } | i   t	 | d d d d d g  d  S(	   NRb   c           B   s   t  Z d   Z RS(   Nc         C   s   d  S(   N(    (   RI   (    (    R   R   ł  s    (   R(   R)   R   (    (    (    R   Rb   ˛  s   s   Testing dict-proxy iterkeys...R   R*   R)   Rp  R   (
   R2   Rb   R   R]   R   t   iterkeysRz   R<   RU  R   (   Rb   R<   R]   Rz   (    (    R   t   dictproxyiterkeysą  s     	*
c          C   sg   d t  f d     Y}  t o	 d GHn g  } |  i i   D] } | | q: ~ } t t |  d  d  S(   NRb   c           B   s   t  Z d   Z RS(   Nc         C   s   d  S(   N(    (   RI   (    (    R   R   ź  s    (   R(   R)   R   (    (    (    R   Rb   ť  s   s    Testing dict-proxy itervalues...i   (	   R2   Rb   R   R]   R   t
   itervaluest   valuesR   R{   (   Rb   R]   R  (    (    R   t   dictproxyitervaluesş  s
     	*c          C   s   d t  f d     Y}  t o	 d GHn g  } |  i i   D] \ } } | | q: ~ } | i	   t
 | d d d d d g  d  S(	   NRb   c           B   s   t  Z d   Z RS(   Nc         C   s   d  S(   N(    (   RI   (    (    R   R   Ä  s    (   R(   R)   R   (    (    (    R   Rb   Ă  s   s   Testing dict-proxy iteritems...R   R*   R)   Rp  R   (   R2   Rb   R   R]   R   RW   Rz   Ră   R<   RU  R   (   Rb   R<   Ră   R]   Rz   (    (    R   t   dictproxyiteritemsÂ  s     	0
c             sű   t  o	 d GHn d t f   d     Y}  d |  f d     Y  t |  d  d d d	 g  t   d  d d d	 g    d   } t | i d   |  d  } t t	 |    t
  t | i d    d  } t t	 |    t
  t | i d  d  S(
   Ns1   Testing __new__ returning something unexpected...Rb   c              s   t  Z   d   Z RS(   Nc            sS   t  | t  o d d d g Sn/ t  | t  o t i    Sn t i |   Sd  S(   Ni   i   i   (   Râ   R   RF  RŽ   R2   RĂ   Rď   RÄ   (   RÄ   R   (   Rď   (    R   RĂ   Î  s
      (   R(   R)   RĂ   (    (   Rď   (    R   Rb   Í  s   Rď   c           B   s   t  Z d   Z RS(   Nc         C   s   | |  _ d  S(   N(   R   RI   RŇ   (   RI   R   (    (    R   RN   Ó  s    (   R(   R)   RN   (    (    (    R   Rď   Ň  s   R[  i   i   i   (   R   R2   Rb   Rď   R   R1   R%   R   RŇ   Râ   RP  (   Rb   R%   Rď   (    (   Rď   R   t   funnynewË  s     	c          C   s  t  o	 d GHn d t f d     Y}  |    } | } | d 9} t | | d f  | } | d 9} t | | d f  | } | d 9} t | | d f  | } | d d >9} t | | d d >f  | } | d  9} t | | d  f  | } | d	 9} t | | d	 f  d  S(
   Ns    Testing for __imul__ problems...Rb   c           B   s   t  Z d   Z RS(   Nc         C   s
   |  | f S(   N(   RI   R¸   (   RI   R¸   (    (    R   R6   ä  s    (   R(   R)   R6   (    (    (    R   Rb   ă  s   f1.0i   l    l    id   RŇ   (   R   R2   Rb   R   R<  R   R1   (   Rb   R<  R   (    (    R   t   imulbugŕ  s,     		




c             s   t  o	 d GHn d t f d     Y  d f    d     Y} d t f   d     Y}  t | i d  t |   i d	  t |  i d
  t |    i d  d  S(   Ns   Testing __doc__ descriptor...t   DocDescrc           B   s   t  Z d   Z RS(   Nc         C   s=   | o | i i d } n | o | i } n d | | f S(   Ns	    instances   object=%s; type=%s(   R2   R   R(   t   otype(   RI   R2   R  (    (    R   Rř   ţ  s
    (   R(   R)   Rř   (    (    (    R   R  ý  s   t   OldClassc              s   t  Z     Z RS(   N(   R(   R)   R  R*   (    (   R  (    R   R    s   t   NewClassc              s   t  Z     Z RS(   N(   R(   R)   R  R*   (    (   R  (    R   R    s   s   object=None; type=OldClasss'   object=OldClass instance; type=OldClasss   object=None; type=NewClasss'   object=NewClass instance; type=NewClass(   R   R2   R  R  R  R   R*   (   R  R  R  (    (   R  R   t   docdescriptorú  s     	c          C   s   t  o	 d GHn d } y
 |  Wn | j
 o n Xt d  d t f d     Y}  |  d  } y
 |  Wn" t j
 o n t d  n Xd  S(   Ns   Testing string exceptions ...s   An exception string.s&   builtin string not usable as exceptionRl  c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rl    s   s   oops -- shouldn't works$   string subclass allowed as exception(   R   t   astringR   RF  Rl  t	   newstringRY   (   Rl  R  R  (    (    R   t   string_exceptions  s     	
	
c          C   sÓ   t  o	 d GHn d  k } d t f d     Y} | d  }  |  i d  t |  i d  t |  i   d  | i |   } t | i d  t | i   d  | i
 |   } t | i d  t | i   d  d  S(   Ns8   Testing that copy.*copy() correctly uses __setstate__...Rb   c           B   s;   t  Z d  d  Z d  d  Z d   Z d   Z d   Z RS(   Nc         C   s   | |  _  | |  _ d  S(   N(   RŇ   RI   t   _C__foo(   RI   RŇ   (    (    R   RN   +  s    	c         C   s   | |  _  d  S(   N(   RŇ   RI   (   RI   RŇ   (    (    R   t   setfoo.  s    c         C   s   |  i S(   N(   RI   R  (   RI   (    (    R   t   getfoo0  s    c         C   s
   |  i g S(   N(   RI   RŇ   (   RI   (    (    R   RX  2  s    c         C   s   | d |  _ |  _ d  S(   Ni    (   t   lstRI   R  RŇ   (   RI   R  (    (    R   RY  4  s     (   R(   R)   R1   RN   R  R  RX  RY  (    (    (    R   Rb   *  s
   		i*   i   (   R   RÓ   R2   Rb   R   R  R   RŇ   R  R   R    (   R   Rb   R   RÓ   (    (    R   t   copy_setstate&  s    		c          C   sj  t  o	 d GHn t d d  d  t d t d  d  t t i d t d   d  d t f d     Y} t | d  d  d  t | d  t d  d  t | d  i t d   d  t d d  d  t d t d  d  t t i d t d   d  d
 t f d     Y} t | d  d  d  t | d  t d  d  t | d  i t d   d  t d d d	 g d  d d g  t d d d	 g t d  d d g  t t i d d d	 g t d   d d g  d t f d     Y} t | d d d	 g  d  d d g  t | d d d	 g  t d  d d g  t | d d d	 g  i t d   d d g  | d d d	 g  }  d	 d g |  t d d	  <t |  d d	 d g  d	 d g |  t d d d  <t |  d	 d d g  |  i t d d	  d d g  t |  d	 d d g  |  i t d d d  d d	 g  t |  d d	 d g  d  S(   Ns8   Testing cases with slices and overridden __getitem__ ...R  i   t   hellRi  c           B   s   t  Z d   Z RS(   Nc         C   s   t  i |  |  S(   N(   RF  R5   RI   R   (   RI   R   (    (    R   R5   J  s    (   R(   R)   R5   (    (    (    R   Ri  I  s   i   i   i   R  c           B   s   t  Z d   Z RS(   Nc         C   s   t  i |  |  S(   N(   R  R5   RI   R   (   RI   R   (    (    R   R5   T  s    (   R(   R)   R5   (    (    (    R   R  S  s   Ry  c           B   s   t  Z d   Z RS(   Nc         C   s   t  i |  |  S(   N(   Rę   R5   RI   R   (   RI   R   (    (    R   R5   ^  s    (   R(   R)   R5   (    (    (    R   Ry  ]  s   i    (   i   i   i   (   i   i   (   i   i   i   (   i   i   (   i   i   i   (   i   i   (   i   i   i   (   i   i   (   i   i   i   (   i   i   (   i   i   i   (   i   i   (   R   R   t   sliceRF  R5   Ri  R  R  Rę   Ry  R   R"   (   R   Ry  Ri  R  (    (    R   t   slicesB  s@    	"" &.&,1"c             s   t  o	 d GHn d t f   d     Y      }  d |  _ ~    i d =t t   i  d  t   i d i d    ` d  S(   Ns-   Testing resurrection of new-style instance...Rb   c              s   t  Z g  Z   d   Z RS(   Nc            s     i i |   d  S(   N(   Rb   t	   containerR>   RI   (   RI   (   Rb   (    R   R`  u  s    (   R(   R)   R¤  R`  (    (   Rb   (    R   Rb   r  s   i*   i˙˙˙˙i   (	   R   R2   Rb   R   R×  R¤  R   R{   R`  (   R   Rb   (    (   Rb   R   t   subtype_resurrectionn  s    			
c          C   sV   t  o	 d GHn d t f d     Y} d  } x  t d  D] }  | |  } q9 W~ d  S(   Ns   Testing slot trash...t   trashc           B   s   t  Z d g Z d   Z RS(   NR   c         C   s   | |  _  d  S(   N(   R   RI   (   RI   R   (    (    R   RN     s    (   R(   R)   RË   RN   (    (    (    R   RŚ    s   	iPĂ  (   R   R2   RŚ  R1   RR  Ri  R=   (   R=   RR  RŚ  (    (    R   t	   slottrash  s    	 c          C   s   d t  f d     Y}  d t  f d     Y} d |  | f d     Y} t | i | i  t t | d   t t | d   d	 |   _ d  S(
   NRh   c           B   s   t  Z f  Z RS(   N(   R(   R)   RË   (    (    (    R   Rh     s   R˙   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R˙     s   Rb   c           B   s   t  Z f  Z RS(   N(   R(   R)   RË   (    (    (    R   Rb     s   R   Rp  i   (	   R2   Rh   R˙   Rb   R   t   __basicsize__R0   R´   R   (   Rh   Rb   R˙   (    (    R   t   slotmultipleinheritance  s    c          C   sw   t  o	 d GHn d t f d     Y} |   }  t |  d d  t |  d d  t d |  d  t d |  d  d  S(   Ns)   Testing correct invocation of __rmul__...Rb   c           B   s   t  Z d   Z d   Z RS(   Nc         C   s   d S(   NR   (    (   RI   R¸   (    (    R   R7   Ş  s    c         C   s   d S(   Nt   rmul(    (   RI   R¸   (    (    R   R8   Ź  s    (   R(   R)   R7   R8   (    (    (    R   Rb   Š  s   	i   R   f2.2000000000000002RŞ  (   R   R2   Rb   R   R   (   R   Rb   (    (    R   t   testrmulĽ  s    		c          C   s=   t  o	 d GHn d t f d     Y} |   }  |  d C}  d  S(   Ns)   Testing correct invocation of __ipow__...Rb   c           B   s   t  Z d   Z RS(   Nc         C   s   d  S(   N(    (   RI   R¸   (    (    R   t   __ipow__š  s    (   R(   R)   RŹ  (    (    (    R   Rb   ¸  s   i   (   R   R2   Rb   R   (   R   Rb   (    (    R   t   testipow´  s
    		c          C   sh   t  o	 d GHn d t f d     Y}  y t d |    d  Wn n Xt  o	 d GHn t i t  d  S(   Ns   Testing SF bug 551412 ...t   UserLongc           B   s   t  Z d   Z RS(   Nc         G   s   d  S(   N(    (   RI   RĹ   (    (    R   Rg  Ć  s    (   R(   R)   Rg  (    (    (    R   RŽ  Ĺ  s   l    s   Testing SF bug 570483...(   R   R2   RŽ  R   R   R  R  (   RŽ  (    (    R   t   do_this_firstž  s    		c    	         s  t  o	 d GHn d t f d     Y}  d t f   d     Y  d |  f d     Y} d | f d	     Y} |   } |   } |  f | _   f | _ t	 | i
   d
  t	 | i
   d
  t	 | i d  t	 | i d  t	   i   | g  d t f d     Y} y t f | _ Wn t j
 o n Xt d  y t f t _ Wn t j
 o n Xt d  y
 | ` Wn t j
 o n Xt d  y f  | _ Wn5 t j
 o) } t |  d j o t d  qÜn Xt d  y | f | _ Wn t j
 o n Xt d  y |  |  f | _ Wn t j
 o n Xt d  y | f | _ Wn t j
 o n Xt d  d f  d     Y} |  | f | _ t	 | i   d  t	 | i   d  y | i Wn t j
 o n Xt d  y | f | _ Wn t j
 o n Xt d  d  S(   Ns   Testing mutable bases...Rb   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rb   ×  s   Rr  c              s   t  Z   d   Z d   Z RS(   Nc            s/   | d j o d Sn t   |   i |  Sd  S(   NR   i   (   R×  Rý   Rr  RI   R  (   RI   R×  (   Rr  (    R   R  Ú  s    c         C   s   d S(   Ni   (    (   RI   (    (    R   R   ß  s    (   R(   R)   R  R   (    (   Rr  (    R   Rr  Ů  s   Rď   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rď   á  s   R  c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R  ă  s   i   i   Ry  c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Ry  đ  s   s/   shouldn't turn list subclass into dict subclasss-   shouldn't be able to assign to list.__bases__s&   shouldn't be able to delete .__bases__s/   a new-style class can't have only classic basess'   wrong error message for .__bases__ = ()s)   shouldn't be able to set .__bases__ to ()s.   shouldn't be able to create inheritance cycless#   didn't detect repeated base classesR'   c           B   s   t  Z d   Z RS(   Nc         C   s   d S(   Ni   (    (   RI   (    (    R   t   meth2(  s    (   R(   R)   R°  (    (    (    R   R'   '  s   i   s   attribute should have vanisheds*   new-style class must have a new-style base(   R   R2   Rb   Rr  Rď   R  R%   Ra  R   R   R   R   t   __subclasses__Rę   Ry  R
   RY   R   RE  RF  R'   R°  RR  (	   Rb   R  R'   Ry  R%   RE  Rr  Ra  Rď   (    (   Rr  R   t   test_mutable_basesÓ  s    					
						c    
         s.  t  o	 d GHn d t f   d     Y  d t f d     Y d t f d     Y}  d t f d	     Y} d
 |  f d     Y}	 d |	 f d     Y} d |	 f   d     Y} d |	 f  d     Y} | i } |	 i } y | f |	 _ Wn3 t j
 o' t | i |  t |	 i |  n Xt d  d  S(   Ns)   Testing mutable bases with failing mro...t   WorkOncec              s   t  Z   d   Z d   Z RS(   Nc            s(   d |  _ t   |   i   | | |  S(   Ni    (   RI   t   flagRý   Rł  RĂ   R|   Ró   t   ns(   RI   R|   Ró   Rľ  (   Rł  (    R   RĂ   A  s    	c         C   s=   |  i d j o t d  n |  i d 7_ t i |   Sd  S(   Ni    t   bozoi   (   RI   R´  RĂ  R   R  (   RI   (    (    R   R  D  s    (   R(   R)   RĂ   R  (    (   Rł  (    R   Rł  @  s   t
   WorkAlwaysc           B   s   t  Z d   Z RS(   Nc         C   s   t  i |   S(   N(   R   R  RI   (   RI   (    (    R   R  L  s    (   R(   R)   R  (    (    (    R   Rˇ  K  s   Rb   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rb   S  s   Rr  c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rr  V  s   Rď   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rď   Y  s   R  c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R  \  s   R"  c              s   t  Z   Z RS(   N(   R(   R)   Rł  Rî   (    (   Rł  (    R   R"  _  s   R-  c              s   t  Z   Z RS(   N(   R(   R)   Rˇ  Rî   (    (   Rˇ  (    R   R-  b  s   s   exception not propagated(   R   R   Rł  Rˇ  R2   Rb   Rr  Rď   R  R"  R-  R*  t   E_mro_beforet   D_mro_beforeR   RĂ  R   R   (
   Rb   R  R-  R"  Rł  Rˇ  Rš  Rr  R¸  Rď   (    (   Rł  Rˇ  R   t#   test_mutable_bases_with_failing_mro=  s$    			c          C   s˝   t  o	 d GHn d t f d     Y}  d t f d     Y} d |  | f d     Y} d |  | f d	     Y} d
 | | f d     Y} y | |  f | _ Wn t j
 o n Xt	 d  d  S(   Ns+   Testing mutable bases catch mro conflict...Rh   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rh   w  s   R˙   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R˙   z  s   Rb   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rb   }  s   Rď   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rď     s   R  c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R    s   s   didn't catch MRO conflict(
   R   R2   Rh   R˙   Rb   Rď   R  R   RY   R   (   Rh   Rb   R˙   R  Rď   (    (    R   t%   test_mutable_bases_catch_mro_conflictt  s    	c          C   s   t  o	 d GHn d t f d     Y}  |  i } d |  _ t |  i |  i f | d f  d |  _ t |  i |  i f | d f  d  S(   Ns   Testing mutable names...Rb   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rb     s   Rď   s   D.E(   R   R2   Rb   R)   R   R(   R   (   Rb   R   (    (    R   t   mutable_names  s    				c          C   sY  t  o	 d GHn d t f d     Y} t | d  d d  t d | d  d  d t f d     Y}  t |    d d	  t d |    d
  d |  f d     Y} t |   |    d  t |    |   d  d |  f d     Y} t | i |  i  t |   d d	  t d |   d
  t |   |    d	  t |    |   d	  d  S(   Ns=   Testing correct dispatch of subclass overloading __r<op>__...R˙   c           B   s   t  Z d   Z d   Z RS(   Nc         C   s   d S(   Ns   B.__floordiv__(    (   RI   R¸   (    (    R   t   __floordiv__Ś  s    c         C   s   d S(   Ns   B.__rfloordiv__(    (   RI   R¸   (    (    R   t   __rfloordiv__¨  s    (   R(   R)   R˝  Rž  (    (    (    R   R˙   Ľ  s   	i   s   B.__floordiv__s   B.__rfloordiv__Rb   c           B   s   t  Z d   Z d   Z RS(   Nc         C   s   d S(   Ns   C.__floordiv__(    (   RI   R¸   (    (    R   R˝  ą  s    c         C   s   d S(   Ns   C.__rfloordiv__(    (   RI   R¸   (    (    R   Rž  ł  s    (   R(   R)   R˝  Rž  (    (    (    R   Rb   °  s   	s   C.__floordiv__s   C.__rfloordiv__Rď   c           B   s   t  Z d   Z d   Z RS(   Nc         C   s   d S(   Ns   D.__floordiv__(    (   RI   R¸   (    (    R   R˝  ź  s    c         C   s   d S(   Ns   D.__rfloordiv__(    (   RI   R¸   (    (    R   Rž  ž  s    (   R(   R)   R˝  Rž  (    (    (    R   Rď   ť  s   	s   D.__floordiv__s   D.__rfloordiv__R  c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R  Ć  s   (	   R   RŽ   R˙   R   R2   Rb   Rď   R  Rž  (   Rb   R˙   R  Rď   (    (    R   t   subclass_right_op  s"    	c             su   t  o	 d GHn d t f d     Y} d t f d     Y  d f    d     Y}  t t |  i  t | i   d  S(   Ns2   Testing type of __dict__ when __metaclass__ set...R˙   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   R˙   Ô  s   Rr   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rr   Ö  s   Rb   c              s   t  Z   Z RS(   N(   R(   R)   Rr   Rî   (    (   Rr   (    R   Rb   Ř  s   (   R   R2   R˙   R   Rr   Rb   R   R   (   Rb   R˙   Rr   (    (   Rr   R   t   dict_type_with_metaclassĐ  s    	c          C   s  t  o	 d GHn d d d g } h  d d  <d d  <d d  <} t t i |  |  t h  i |  |  t i d }  t |  i	 d  t  |  |  t |  i	 h   |  |  y |  i	 d  d   Wn t
 j
 o n Xt d  y |  i	 d  Wn t
 j
 o n Xt d  y |  i	 d  d  Wn t
 j
 o n Xt d	  y |  i	 d  t  Wn t
 j
 o n Xt d
  d  S(   Ns1   Testing __get__ method of METH_CLASS C methods...i   i   i   t   fromkeyss0   shouldn't have allowed descr.__get__(None, None)i*   s(   shouldn't have allowed descr.__get__(42)s.   shouldn't have allowed descr.__get__(None, 42)s/   shouldn't have allowed descr.__get__(None, int)(   R   R   R1   R   R   R
   RÁ  R   RH  Rř   RY   R   RŽ   (   RH  R   R   (    (    R   t   meth_class_getÝ  s:    	!			c          C   sk  t  o	 d GHn d t f d     Y} d f  d     Y} |   }  | |   } t t |  |   t t | |   d | f d     Y} |   }  | |   } t t |  |   t t | |   d t f d     Y} |   }  | |   } t t |  |   t t | |   d | f d	     Y} |   }  | |   } t t |  |   t t | |   d  S(
   Ns+   Testing proxy isinstance() and isclass()...RŽ  c           B   s   t  Z d   Z d   Z RS(   Nc         C   s   | |  _ d  S(   N(   Rx   RI   t   _Proxy__obj(   RI   Rx   (    (    R   RN   	  s    c         C   s8   | i d  o t i |  |  Sn t |  i |  Sd  S(   Nt   _Proxy__(   R|   Rp   R2   R  RI   R   RĂ  (   RI   R|   (    (    R   R    s    (   R(   R)   RN   R  (    (    (    R   RŽ    s   	Rb   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rb     s   Rď   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rď     s   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rb     s   c           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   Rď   &  s   (	   R   R2   RŽ  Rb   R   t   paR0   Râ   Rď   (   R   Rb   RĹ  RŽ  Rď   (    (    R   t   isinst_isclass  s.    						c             s   t  o	 d GHn d t f d     Y} d t f d     Y} d | f   d     Y      } | |  } t   i d |  d	  d  S(
   Ns%   Testing super() for a proxy object...RŽ  c           B   s   t  Z d   Z d   Z RS(   Nc         C   s   | |  _ d  S(   N(   Rx   RI   RĂ  (   RI   Rx   (    (    R   RN   1  s    c         C   s8   | i d  o t i |  |  Sn t |  i |  Sd  S(   NRÄ  (   R|   Rp   R2   R  RI   R   RĂ  (   RI   R|   (    (    R   R  3  s    (   R(   R)   RN   R  (    (    (    R   RŽ  0  s   	R˙   c           B   s   t  Z d   Z RS(   Nc         C   s   d S(   Ns   B.f(    (   RI   (    (    R   R  :  s    (   R(   R)   R  (    (    (    R   R˙   9  s   Rb   c              s   t  Z   d   Z RS(   Nc            s   t    |   i   d S(   Ns   ->C.f(   Rý   Rb   RI   R  (   RI   (   Rb   (    R   R  >  s    (   R(   R)   R  (    (   Rb   (    R   Rb   =  s   R  s   B.f->C.f(	   R   R2   RŽ  R˙   Rb   Rx   R_  R   R   (   Rb   R˙   Rx   R_  RŽ  (    (   Rb   R   t
   proxysuper-  s    			c           C   s}   t  o	 d GHn y t i t d d  Wn t j
 o n Xt d  y t i t d  Wn t j
 o n Xt d  d  S(   Ns,   Testing prohibition of Carlo Verre's hack...RŇ   i*   s!   Carlo Verre __setattr__ suceeded!R  s"   Carlo Verre __delattr__ succeeded!(   R   R2   R  RF  RY   R   R  (    (    (    R   t
   carloverreE  s    		c             sd   t  o	 d GHn d  k   d f    d     Y} d t f d     Y} |   }  | |   |  _ ~  d  S(   Ns   Testing weakref segfault...t   Provokerc              s   t  Z   d   Z d   Z RS(   Nc            s     i |  |  _ d  S(   N(   RÇ  RČ  t	   referrentRI   (   RI   RĘ  (   RÇ  (    R   RN   ]  s    c         C   s   |  i   } d  S(   N(   RI   RČ  R   (   RI   R   (    (    R   R`  `  s    (   R(   R)   RN   R`  (    (   RÇ  (    R   RÉ  \  s   t   Oopsc           B   s   t  Z RS(   N(   R(   R)   (    (    (    R   RË  c  s   (   R   RÇ  RÉ  R2   RË  RR  t   whatever(   RR  RÇ  RÉ  RË  (    (   RÇ  R   t   weakref_segfaultU  s    			c          C   s3   d   } x t d  D] }  | i } q Wd  } d  S(   Nc           C   s   d  S(   N(   R1   (    (    (    R   RJ   l  s    i@B (   R  Ri  R=   Rů   R1   (   R=   R  (    (    R   t   wrapper_segfaultj  s
    	 c             s^   t  o	 d GHn d  k   d f    d     Y} |     _ y	 d GHWn t j
 o n Xd  S(   Ns+   Testing sys.stdout is changed in getattr...t   StdoutGuardc              s   t  Z   d   Z RS(   Nc            s      i   _ t d |   d  S(   Ns!   Premature access to sys.stdout.%s(   R   t
   __stdout__Rm  RĂ  R×  (   RI   R×  (   R   (    R   R}   w  s    (   R(   R)   R}   (    (   R   (    R   RĎ  v  s   s   Oops!(   R   R   RĎ  Rm  RĂ  (   R   RĎ  (    (   R   R   t	   filefaultr  s    			c             sŽ   t  o	 d GHn d t f  d     Y} d t f d     Y  d t f   d     Y    }  d |  i |   <t |  i d	  d  k	 } | i
   t t |  d
  t  d  S(   Ns&   Testing vicious_descriptor_nonsense...t   Evilc              s   t  Z d   Z   d   Z RS(   Nc         C   s
   t  d  S(   NR×  (   RŻ  (   RI   (    (    R   R°    s    c            s
     ` d S(   Ni    (   Rb   R×  (   RI   R¸   (   Rb   (    R   Rą    s    (   R(   R)   R°  Rą  (    (   Rb   (    R   RŇ    s   	t   Descrc           B   s   t  Z d  d  Z RS(   Nc         C   s   d S(   Ni   (    (   RI   t   obR   (    (    R   Rř     s    (   R(   R)   R1   Rř   (    (    (    R   RÓ    s   Rb   c              s   t  Z     Z RS(   N(   R(   R)   RÓ  R×  (    (   RÓ  (    R   Rb     s   i    i   R×  (   R   R2   RŇ  RÓ  Rb   R   R   R   R×  Rd  Re  R´   t   False(   R   RÓ  Rb   RŇ  Rd  (    (   RÓ  Rb   R   t   vicious_descriptor_nonsense  s    		c          C   sr   d t  f d     Y} t i }  zA t i d d t y |   Wn t j
 o n Xt d  Wd  |  t _ Xd  S(   Nt   Fooc           B   s   t  Z d   Z RS(   Nc         C   s   d S(   Ni
   (    (   RI   (    (    R   RN   ˘  s    (   R(   R)   RN   (    (    (    R   R×  Ą  s   t   errort   categorys'   did not test __init__() for None return(   R2   R×  t   warningst   filterst
   oldfilterst   filterwarningst   RuntimeWarningR   (   RÜ  R×  (    (    R   t	   test_init  s    
  c             s  t  o	 d GHn d  k }	 d  k } d  k   d   }   d   } |	 i d }
 |	 i } x(t	 | i
 g D]} xd4 d5 d6 d7 d8 d9 d: d; d< d= d> d? d@ dA dB g D]Ů\ } } } | d, j o
 | }  n d. | d/ }  | d0 f  h  | | < } | d1 f  h  |  | < } |   } |   } | | | |  | | | |  | | | |  | | | |  | | | |
  | | | |  | | |
 |  | | | |  | oÖ | | | |  | | | |  | | | |  | | | |  | | | |
  | | | |  d2 | d/ } | d3 f  h  | | < } |   } | | | |  | | | |  | | | |
  | | | |  q  q  Wqf Wd  S(C   Ns   Testing NotImplemented...c         C   s   t  S(   N(   Rˇ   (   RI   R¸   (    (    R   t   specialmethodź  s    c            sT   y' |  h  d | <d | <d   <UWn e j
 o n Xe d |  f   d  S(   NR   R<  t   operators   no TypeError from %r(   R	   R   R<  Rá  RY   R   (   R	   R   R<  (   Rá  (    R   RJ  ż  s
    'l    R   s   x + ys   x += yt   __sub__s   x - ys   x -= yR7   s   x * ys   x *= yR   s   operator.truediv(x, y)R˝  s   operator.floordiv(x, y)R   s   x / ys   x /= yt   __mod__s   x % ys   x %= yt
   __divmod__s   divmod(x, y)Rg  s   x ** ys   x **= yt
   __lshift__s   x << ys   x <<= yt
   __rshift__s   x >> ys   x >>= yt   __and__s   x & ys   x &= yt   __or__s   x | ys   x |= yt   __xor__s   x ^ ys   x ^= yt
   __coerce__s   coerce(x, y)t   __ri   Rh   R˙   t   __iRb   (   s   __add__s   x + ys   x += y(   s   __sub__s   x - ys   x -= y(   s   __mul__s   x * ys   x *= y(   s   __truediv__s   operator.truediv(x, y)N(   s   __floordiv__s   operator.floordiv(x, y)N(   s   __div__s   x / ys   x /= y(   s   __mod__s   x % ys   x %= y(   s
   __divmod__s   divmod(x, y)N(   s   __pow__s   x ** ys   x **= y(   s
   __lshift__s   x << ys   x <<= y(   s
   __rshift__s   x >> ys   x >>= y(   s   __and__s   x & ys   x &= y(   s   __or__s   x | ys   x |= y(   s   __xor__s   x ^ ys   x ^= y(   s
   __coerce__s   coerce(x, y)N(   R   R   R  Rá  Rŕ  RJ  Rť   t   N1t   N2R   t	   ClassTypeRţ   R1   R|   R	   t   iexprt   rnameRh   R˙   R   R   t   inameRb   R   (   Rń  Rb   Rá  RJ  Rň  Rŕ  Rđ  Rh   R˙   R   Rí  Rî  R  R   R   R   R|   R	   Rţ   (    (   Rá  R   t   notimplementedł  sT    						 4 
			c             sM   d  k   d t f    d     Y  y     i Wn t j
 o n Xd  S(   Nt   EvilGetattributec              s    t  Z d   Z    d   Z RS(   Nc         C   s   t  |   d  S(   N(   RR  R|   (   RI   R|   (    (    R   R}   ţ  s    c            s7     ` x t d  D] }  i   q Wt |   d  S(   Ni   (   Rô  R}   R\   R=   Rd  Re  RR  R|   (   RI   R|   R=   (   Rô  Rd  (    R   R     s
     (   R(   R)   R}   R  (    (   Rô  Rd  (    R   Rô  ý  s   	(   Rd  R2   Rô  R×  RR  (   Rô  Rd  (    (   Rô  Rd  R   t   test_lost_getattrú  s    		c           C   s´  t    t   t   t   t   t   t   t   t   t	   t
   t   t   t   t   t   t   t   t   t   t   t   t   t   t   t   t   t   t   t   t   t   t    t!   t"   t#   t$   t%   t&   t'   t(   t)   t*   t+   t,   t-   t.   t/   t0   t1   t2   t3   t4   t5   t6   t7   t8   t9   t:   t;   t<   t=   t>   t?   t@   tA   tB   tC   tD   tE   tF   tG   tH   tI   tJ   tK   tL   tM   tN   tO   tP   tQ   tR   tS   tT   tU   tV   tW   tX   tY   tZ   t[   t\   t]   t^   t_   t` o	 d GHn d  S(   Ns   All OK(a   RÍ  RÎ  RŻ  R3   R9   RD   R_   R   R˝   Rž   Rż   RÍ   R×   Rß   Ré   Rě   Rţ   R  R+  RP  R.  R2  R;  RB  RS  Ro  Rs  R~  R  R  R  R  R  R  R  R  RĄ  RŞ  RŹ  RÄ  RĚ  RŮ  Rä  R  R"  R#  R:  R>  RE  RG  RL  RS  RT  Rc  Rf  Rj  Rk  Rq  Ry  Rz  R{  R|  R  R  R  R  R  R  R  Re  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	   test_main  sÄ     t   __main__(}   t   test.test_supportR0   R   R   R   R  RÂ  RÓ   R    RÚ  RÝ  t   DeprecationWarningR(   R   R   R   R   R!   R#   R&   R3   R9   RD   R_   R   R˛   RV   R|   R	   t   islowerRľ   Rś   R˝   Rž   Rż   RÍ   R×   Rß   Ré   Rě   Rţ   R  R+  R.  R2  R;  RB  RO  RP  RS  Ro  Rs  R~  R  R  R  R  R  R  R  R  RĄ  RŞ  RŹ  RÄ  RĚ  RŮ  Rä  R  R"  R#  R:  R>  RE  RG  RL  RS  RT  Rc  Re  Rf  Rj  Rk  Rq  Ry  Rz  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Ç  RČ  RÍ  RÎ  RŃ  RÖ  Rß  Ró  Rő  Rö  (v   R3   RČ  R  RÖ  R"  R  R˛  R;  R  R  R!   R˛   Rß   RĆ  RÂ  Ró  RÇ  RG  R  RO  R  R   R   R|   Rş  Rť  R>  RÄ  R§  RŤ  R:  R   RŹ  RŻ  Rż  R  Rq  R  R  Rc  R  RĄ  Rś   Rö  RT  Rţ   RÎ  Rä  RÂ  RP  Rě   R   RŔ  RS  RS  R  RŮ  RĚ  Rż   R#   RD   RÍ  R  Ré   Rź  Rß  R_   Rő  R   RŁ  RĽ  R  Rk  R˝   R  Ro  R  RŃ  Rf  Re  RL  R  R×   Rs  R.  R9   RŞ  R  RŠ  R+  R  R	   R&   R  R  Rž   R|  R    R~  RB  Rz  RE  R  R{  R2  R   R   RÚ  Ry  Rj  RÍ   R   R#  R  R­  R   R0   Rľ   (    (    R   t   ?   s  +							S	}ą 
W 
					$	-	4		˘			&						Ľ	/	O	-	&					"			9		Ś		=	t	˙ X		+	!		N			*		t	W			F							.	
												,					
		j	7			4		(	(									G		d