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.10/test/__pycache__/test_doctest2.cpython-310.opt-1.pyc
o

�io	�@sldZddlZddlZejjdkre�d��Gdd�de�ZGdd�dej�Z	dd	l
Ted
kr4e��dSdS)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:

        ЉЊЈЁЂ

    cC�dS)z;C.__init__.

        >>> print(C()) # 3
        42
        N���selfrr�//usr/local/lib/python3.10/test/test_doctest2.py�__init__!�z
C.__init__cCr)z/
        >>> print(C()) # 4
        42
        Z42rrrrr�__str__(sz	C.__str__c@seZdZdZdd�ZdS)zC.DzJA nested D class.

        >>> print("In D!")   # 5
        In D!
        cCr)z8
            >>> print(3) # 6
            3
            Nrrrrr�nested6r
z
C.D.nestedN)�__name__�
__module__�__qualname__�__doc__rrrrr�D/srcCs|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�setxEs
zC.setxzi        >>> c = C()    # 13
        >>> c.x = 12   # 14
        >>> print(c.x)  # 15
        -12
        )�doccCr)z�
        A static method.

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

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

		
rc@seZdZdd�ZdS)�TestcCs`ddl}ddl}d}|�|jt�\}}|r|�d||f�||kr.|�d||f�dSdS)Nr�z%d of %d doctests failedz expected %d tests to run, not %d)�doctest�sys�testmod�modulesr
Zfail)rr#r$ZEXPECTED�f�trrr�test_testmodos�zTest.test_testmodN)r
rrr)rrrrr!nsr!)�*�__main__)
rr$Zunittest�flags�optimizeZSkipTestrrZTestCaser!r#r
�mainrrrr�<module>s

[
�