Server : LiteSpeed
System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : nandedex ( 1060)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /opt/cppython/lib/python3.8/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : //opt/cppython/lib/python3.8/test/__pycache__/test_doctest2.cpython-38.pyc
U

>��g7	�@shdZddlZddlZddlmZejjdkr6e�d��Gdd�de�Z	dd	�Z
dd
lTedkrde
�dS)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:

ЉЊЈЁЂ

�N)�support�zCannot test docstrings with -O2c@sfeZdZdZdd�Zdd�ZGdd�de�Zdd	�Zd
d�Z	e
ee	dd
�Zedd��Z
edd��ZdS)�Cu�Class C.

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


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

        ЉЊЈЁЂ

    cCsdS)z;C.__init__.

        >>> print(C()) # 3
        42
        N���selfrr�1/opt/cppython/lib/python3.8/test/test_doctest2.py�__init__"sz
C.__init__cCsdS)z/
        >>> print(C()) # 4
        42
        Z42rrrrr�__str__)sz	C.__str__c@seZdZdZdd�ZdS)zC.DzJA nested D class.

        >>> print("In D!")   # 5
        In D!
        cCsdS)z8
            >>> print(3) # 6
            3
            Nrrrrr�nested7sz
C.D.nestedN)�__name__�
__module__�__qualname__�__doc__rrrrr�D0srcCs|jS)zg
        >>> c = C()    # 7
        >>> c.x = 12   # 8
        >>> print(c.x)  # 9
        -12
        �Z_xrrrr�getx=szC.getxcCs
||_dS)zm
        >>> c = C()     # 10
        >>> c.x = 12    # 11
        >>> print(c.x)   # 12
        -12
        Nr)r�valuerrr�setxFszC.setxzi        >>> c = C()    # 13
        >>> c.x = 12   # 14
        >>> print(c.x)  # 15
        -12
        )�doccCsdS)z�
        A static method.

        >>> print(C.statm())    # 16
        666
        >>> print(C().statm())  # 17
        666
        i�rrrrr�statmVs
zC.statmcCs|S)z�
        A class method.

        >>> print(C.clsm(22))    # 18
        22
        >>> print(C().clsm(23))  # 19
        23
        r)�cls�valrrr�clsmbs
zC.clsmN)rr
rrr	r
�objectrrr�property�x�staticmethodr�classmethodrrrrrrs

		
rcCs<ddlm}d}t�|�\}}||kr8t�d||f��dS)Nr)�
test_doctest2�z expected %d tests to run, not %d)�testrrZrun_doctestZ
TestFailed)rZEXPECTED�f�trrr�	test_mainns�r$)�*�__main__)
r�sysZunittestr!r�flags�optimizeZSkipTestrrr$�doctestrrrrr�<module>s

Z


F1le Man4ger