Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.9/test/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.9/test/__pycache__/test_doctest2.cpython-39.pyc

a

��go	�@shdZddlZddlZejjdkr*e�d��Gdd�de�ZGdd�dej�Z	dd	l
Ted
krde��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�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�./usr/local/lib/python3.9/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�nested6sz
C.D.nestedN)�__name__�
__module__�__qualname__�__doc__r
rrrr�D/srcCs|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�setxEszC.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�statmUs
zC.statmcCs|S)z�
        A class method.

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

		
rc@seZdZdd�ZdS)�TestcCs\ddl}ddl}d}|�|jt�\}}|r>|�d||f�||krX|�d||f�dS)Nr�z%d of %d doctests failedz expected %d tests to run, not %d)�doctest�sys�testmod�modulesrZfail)rr r!ZEXPECTED�f�trrr�test_testmodoszTest.test_testmodN)rrr
r&rrrrrnsr)�*�__main__)
rr!Zunittest�flags�optimizeZSkipTestrrZTestCaserr r�mainrrrr�<module>s

[


Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists