mς
­fIc           @   s   d  k  Z  d f  d     YZ d f  d     YZ d f  d     YZ d d d	 d d
 d g d d  e   e d  e d  g
 Z d   Z e   d  S(   Nt   Emptyc           B   s   t  Z d   Z RS(   Nc         C   s   d S(   Ns   <Empty>(    (   t   self(    (    t.   /mit/python/lib/python2.4/test/test_compare.pyt   __repr__   s    (   t   __name__t
   __module__R   (    (    (    R   R       s   t   Coercec           B   s#   t  Z d   Z d   Z d   Z RS(   Nc         C   s   | |  _  d  S(   N(   t   argR   (   R   R   (    (    R   t   __init__   s    c         C   s   d |  i S(   Ns   <Coerce %s>(   R   R   (   R   (    (    R   R      s    c         C   s5   t  | t  o |  i | i f Sn |  i | f Sd  S(   N(   t
   isinstancet   otherR   R   R   (   R   R
   (    (    R   t
   __coerce__   s    (   R   R   R   R   R   (    (    (    R   R      s   		t   Cmpc           B   s#   t  Z d   Z d   Z d   Z RS(   Nc         C   s   | |  _  d  S(   N(   R   R   (   R   R   (    (    R   R      s    c         C   s   d |  i S(   Ns   <Cmp %s>(   R   R   (   R   (    (    R   R      s    c         C   s   t  |  i |  S(   N(   t   cmpR   R   R
   (   R   R
   (    (    R   t   __cmp__   s    (   R   R   R   R   R   (    (    (    R   R      s   		i   f2.0l    x0.00.0i   i   c          C   sO  x~ t  D]v }  xm t  D]e } y |  | j } Wn# d |  | t i   d f GHq X| o d |  | f GHq d |  | f GHq Wq Wg  } x1 t d  D]# } | i	 t
 |  d t    q Wx | D] }  x| | D]t } t |  |  t t |   t |   j oC d Gt |  |  Gt t |   t |   Gt |   Gt |  GHqΟ qΟ WqΒ Wd  S(   Ns   cmp(%s, %s) => %si    s   %s == %ss   %s != %si
   i   s   ERROR:(   t
   candidatest   at   bt   xt   syst   exc_infot   Lt   ranget   it   insertt   lenR    R   t   id(   R   R   R   R   R   (    (    R   t   test!   s*        !  +(   i   (   R   R    R   R   t   NoneR   R   (   R   R   R   R   R    R   (    (    R   t   ?   s   	:	