;
Ëâ"Ic               @   sX   d  Z  d d l m Z Gd „  d e ƒ Z d „  Z d d l Te d k o e ƒ  n d S(	   uñ   A module to test whether doctest recognizes some 2.2 features,
like static and class methods.

>>> print('yup')  # 1
yup

We include some (random) encoded (utf-8) text in the text surrounding
the example.  It should be ignored:

Ð‰ÐŠÐˆÐÐ‚

i    (   u   supportc             B   s~   |  Ee  Z d  Z d „  Z d „  Z Gd „  d e ƒ Z d „  Z d „  Z e	 e e d d ƒZ
 e d	 „  ƒ Z e d
 „  ƒ Z d S(   u¶   Class C.

    >>> print(C())  # 2
    42


    We include some (random) encoded (utf-8) text in the text surrounding
    the example.  It should be ignored:

        Ð‰ÐŠÐˆÐÐ‚

    c             C   s   d S(   u;   C.__init__.

        >>> print(C()) # 3
        42
        N(    (   u   self(    (    u/   /mit/python/lib/python3.0/test/test_doctest2.pyu   __init__   s    c             C   s   d S(   u/   
        >>> print(C()) # 4
        42
        u   42(    (   u   self(    (    u/   /mit/python/lib/python3.0/test/test_doctest2.pyu   __str__&   s    c             B   s   |  Ee  Z d  Z d „  Z d S(   uJ   A nested D class.

        >>> print("In D!")   # 5
        In D!
        c             C   s   d S(   u8   
            >>> print(3) # 6
            3
            N(    (   u   self(    (    u/   /mit/python/lib/python3.0/test/test_doctest2.pyu   nested4   s    N(   u   __name__u
   __module__u   __doc__u   nested(   u
   __locals__(    (    u/   /mit/python/lib/python3.0/test/test_doctest2.pyu   D-   s   
u   Dc             C   s   |  j  S(   ug   
        >>> c = C()    # 7
        >>> c.x = 12   # 8
        >>> print(c.x)  # 9
        -12
        (   u   _x(   u   self(    (    u/   /mit/python/lib/python3.0/test/test_doctest2.pyu   getx:   s    c             C   s   | |  _  d S(   um   
        >>> c = C()     # 10
        >>> c.x = 12    # 11
        >>> print(c.x)   # 12
        -12
        N(   u   _x(   u   selfu   value(    (    u/   /mit/python/lib/python3.0/test/test_doctest2.pyu   setxC   s    u   docui           >>> c = C()    # 13
        >>> c.x = 12   # 14
        >>> print(c.x)  # 15
        -12
        c               C   s   d S(   u…   
        A static method.

        >>> print(C.statm())    # 16
        666
        >>> print(C().statm())  # 17
        666
        iš  (    (    (    (    u/   /mit/python/lib/python3.0/test/test_doctest2.pyu   statmS   s    
c             C   s   | S(   u„   
        A class method.

        >>> print(C.clsm(22))    # 18
        22
        >>> print(C().clsm(23))  # 19
        23
        (    (   u   clsu   val(    (    u/   /mit/python/lib/python3.0/test/test_doctest2.pyu   clsm_   s    
N(   u   __name__u
   __module__u   __doc__u   __init__u   __str__u   objectu   Du   getxu   setxu   propertyu   xu   staticmethodu   statmu   classmethodu   clsm(   u
   __locals__(    (    u/   /mit/python/lib/python3.0/test/test_doctest2.pyu   C   s   
							u   Cc              C   sY   d d l  m }  d } t j |  ƒ \ } } | | k o t j d | | f ƒ ‚ n d  S(   Ni    (   u   test_doctest2i   u    expected %d tests to run, not %d(   u   testu   test_doctest2u   supportu   run_doctestu
   TestFailed(   u   test_doctest2u   EXPECTEDu   fu   t(    (    u/   /mit/python/lib/python3.0/test/test_doctest2.pyu	   test_maink   s    	(   u   *u   __main__N(   u   __doc__u   testu   supportu   objectu   Cu	   test_mainu   doctestu   __name__(    (    (    u/   /mit/python/lib/python3.0/test/test_doctest2.pyu   <module>   s   Z	

