403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.216.240
Web Server : Apache
System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
User : c9415830 ( 11735)
PHP Version : 8.4.17
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python36/lib64/python3.6/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python36/lib64/python3.6/test/__pycache__/test_doctest2.cpython-36.pyc
3

�w2_7	�@shdZddlZddlZddlmZejjdkr6ejd��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�7/opt/alt/python36/lib64/python3.6/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}tj|�\}}||kr8tjd||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


Youez - 2016 - github.com/yon3zu
LinuXploit