-í
é¶<c       sQ   d  Z  d k Z d e f d „  ƒ  YZ d „  Z d k Te d j o 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 d „  Z e	 e e d d ƒZ
 d	 „  Z e e ƒ Z 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   |  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   | |  _ 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   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   | 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     sR   d  k  } d }  t i | ƒ \ } } | |  j o 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	
