-í
•‚É<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¥   
 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(    (    s2   /usr/local/twc/lib/python2.2/test/test_doctest2.pys   __init__ s   c    s      d Sd S(   s.   
        >>> print C() # 4
        42
        s   42N(    (   s   self(    (    s2   /usr/local/twc/lib/python2.2/test/test_doctest2.pys   __str__ s   s   Dc      s    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(    (    s2   /usr/local/twc/lib/python2.2/test/test_doctest2.pys   nested& s   (   s   __doc__s   nested(    (    (    s2   /usr/local/twc/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(    (    s2   /usr/local/twc/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(    (    s2   /usr/local/twc/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(    (    (    (    s2   /usr/local/twc/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(    (    s2   /usr/local/twc/lib/python2.2/test/test_doctest2.pys   clsmR s   (   s   __doc__s   __init__s   __str__s   objects   Ds   getxs   setxs   propertys   xs   statms   staticmethods   clsms   classmethod(    (    (    s2   /usr/local/twc/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(    (    s2   /usr/local/twc/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(    (    s2   /usr/local/twc/lib/python2.2/test/test_doctest2.pys   ? s   U

