-í
éś<c       si     d  Z    d k Z 
 d e f d     YZ _ d   Z i d k Tk e d j o l e   n d S(   sx   A module to test whether doctest recognizes some 2.2 features,
like static and class methods.

>>> print 'yup'  # 1
yup
Ns   Cc      sŤ   
 t  Z d  Z   d   Z  d   Z  d e f d     YZ , d   Z 5 d   Z > e	 e e d d Z
 E d	   Z P e e  Z R d
   Z ] e e  Z RS(   s,   Class C.

    >>> print C()  # 2
    42
    c    s
     d S(   s:   C.__init__.

        >>> print C() # 3
        42
        N(    (   s   self(    (    s(   /usr/lib/python2.2/test/test_doctest2.pys   __init__ s   c    s      d Sd S(   s.   
        >>> print C() # 4
        42
        s   42N(    (   s   self(    (    s(   /usr/lib/python2.2/test/test_doctest2.pys   __str__ s   s   Dc      s     t  Z d  Z $ & d   Z RS(   sI   A nested D class.

        >>> print "In D!"   # 5
        In D!
        c    s
   & * d S(   s7   
            >>> print 3 # 6
            3
            N(    (   s   self(    (    s(   /usr/lib/python2.2/test/test_doctest2.pys   nested& s   (   s   __name__s
   __module__s   __doc__s   nested(    (    (    s(   /usr/lib/python2.2/test/test_doctest2.pys   D s   c    s   , 2 3 |  i Sd S(   sf   
        >>> c = C()    # 7
        >>> c.x = 12   # 8
        >>> print c.x  # 9
        -12
        N(   s   selfs   _x(   s   self(    (    s(   /usr/lib/python2.2/test/test_doctest2.pys   getx, s   c    s   5 ; < | |  _ d S(   sl   
        >>> c = C()     # 10
        >>> c.x = 12    # 11
        >>> print c.x   # 12
        -12
        N(   s   values   selfs   _x(   s   selfs   value(    (    s(   /usr/lib/python2.2/test/test_doctest2.pys   setx5 s   s   docsh           >>> c = C()    # 13
        >>> c.x = 12   # 14
        >>> print c.x  # 15
        -12
        c      s   E M N d Sd S(   s   
        A static method.

        >>> print C.statm()    # 16
        666
        >>> print C().statm()  # 17
        666
        i  N(    (    (    (    s(   /usr/lib/python2.2/test/test_doctest2.pys   statmE s   c    s   R Z [ | Sd S(   s   
        A class method.

        >>> print C.clsm(22)    # 18
        22
        >>> print C().clsm(23)  # 19
        23
        N(   s   val(   s   clss   val(    (    s(   /usr/lib/python2.2/test/test_doctest2.pys   clsmR s   (   s   __name__s
   __module__s   __doc__s   __init__s   __str__s   objects   Ds   getxs   setxs   propertys   xs   statms   staticmethods   clsms   classmethod(    (    (    s(   /usr/lib/python2.2/test/test_doctest2.pys   C
 s   		c     sd   _ ` d  k  } a d }  b t i |  \ } } c | |  j o  d t i d |  | f   n d  S(   Ni   s    expected %d tests to run, not %d(   s   test_doctest2s   EXPECTEDs   test_supports   run_doctests   fs   ts
   TestFailed(   s   EXPECTEDs   ts   test_doctest2s   f(    (    s(   /usr/lib/python2.2/test/test_doctest2.pys	   test_main_ s
   	(   s   *s   __main__(   s   __doc__s   test_supports   objects   Cs	   test_mains   doctests   __name__(   s   test_supports   Cs	   test_main(    (    s(   /usr/lib/python2.2/test/test_doctest2.pys   ? s   U

