HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.7/test/__pycache__/test_doctest2.cpython-37.opt-1.pyc
B

��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�./usr/local/lib/python3.7/test/test_doctest2.py�__init__"sz
C.__init__cCsdS)z/
        >>> print(C()) # 4
        42
        Z42r)rrrr�__str__)sz	C.__str__c@seZdZdZdd�ZdS)zC.DzJA nested D class.

        >>> print("In D!")   # 5
        In D!
        cCsdS)z8
            >>> print(3) # 6
            3
            Nr)rrrr�nested7sz
C.D.nestedN)�__name__�
__module__�__qualname__�__doc__r
rrrr�D0srcCs|jS)zg
        >>> c = C()    # 7
        >>> c.x = 12   # 8
        >>> print(c.x)  # 9
        -12
        )�_x)rrrr�getx=szC.getxcCs
||_dS)zm
        >>> c = C()     # 10
        >>> c.x = 12    # 11
        >>> print(c.x)   # 12
        -12
        N)r)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)rrr
rrr	�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#Zdoctestrrrrr�<module>s
Z