403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.216.15
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/distutils/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python36/lib64/python3.6/distutils/tests/__pycache__/test_check.cpython-36.opt-2.pyc
3

�
�^��@s�ddlZddlZddlmZddlmZmZddlmZddl	m
Z
yddlZWnek
rhdZYnXGdd�dej
ejej�Zdd	�Zed
kr�ee��dS)�N)�run_unittest)�check�HAS_DOCUTILS)�support)�DistutilsSetupErrorc@sbeZdZddd�Zdd�Zejed�dd��Zejed�d	d
��Z	ejed�dd��Z
d
d�ZdS)�
CheckTestCaseNcKsb|dkri}|jf|�\}}t|�}|j�x |j�D]\}}t|||�q6W|j�|j�|S)N)�create_distrZinitialize_options�items�setattrZensure_finalizedZrun)�self�metadata�options�pkg_info�dist�cmd�name�value�r�//opt/alt/python36/lib64/python3.6/test_check.py�_runszCheckTestCase._runcCs�|j�}|j|jd�dddddd�}|j|�}|j|jd�|jt|jifddi�|j|dd�}|j|jd�dddddd	d
d�}|j|�}|j|jd�dS)N��xxx)�url�author�author_emailr�versionr�strict�)ruÉricuSomething about esszet ßuMore things about esszet ß)rrrrr�description�long_description)r�assertEqual�	_warnings�assertRaisesr)rrrrrr�test_check_metadata s"


z!CheckTestCase.test_check_metadatazwon't test without docutilscCsT|j�\}}t|�}d}|j|�}|jt|�d�d}|j|�}|jt|�d�dS)Nztitle
===

testrztitle
=====

testr)rr�_check_rst_datar �len)rrrr�broken_rest�msgs�restrrr�test_check_documentAs

z!CheckTestCase.test_check_documentcCs�d}|j|d�\}}t|�}|j�|j|jd�ddddd|d�}|jt|j|fddd��d|d<|j|ddd�}|j|jd	�dS)
Nztitle
===

test)rrr)rrrrrr)r�restructuredtextutitle
=====

test ßrr)rr�check_restructuredtextr r!r"rr)rr&rrrrrrr�test_check_restructuredtextPsz)CheckTestCase.test_check_restructuredtextcCs�g}|jtjd��|jtjd��xx|D]p}|j|d�\}}t|�}|j�|j|�}tdk	rr|jt	|�d�q*|jt	|�d�|jt
|dd�d�q*WdS)Nz}            Here's some code:

            .. code:: python

                def foo():
                    pass
            z�            Here's some code:

            .. code-block:: python

                def foo():
                    pass
            )rrrz0Cannot analyze code. Pygments package not found.)�append�textwrap�dedentrrr+r$�pygmentsr r%�str)rZexample_rst_docsZrest_with_coderrrr'rrr�1test_check_restructuredtext_with_syntax_highlightfs 

z?CheckTestCase.test_check_restructuredtext_with_syntax_highlightcCs(ddd�}|jt|jifddd��dS)Nr)rrr)rr*)r"rr)rrrrr�test_check_all�s

zCheckTestCase.test_check_all)N)�__name__�
__module__�__qualname__rr#�unittestZ
skipUnlessrr)r,r2r3rrrrrs
!$rcCs
tjt�S)N)r7Z	makeSuiterrrrr�
test_suite�sr8�__main__)r.r7Ztest.supportrZdistutils.command.checkrrZdistutils.testsrZdistutils.errorsrr0�ImportErrorZLoggingSilencerZTempdirManagerZTestCaserr8r4rrrr�<module>s


Youez - 2016 - github.com/yon3zu
LinuXploit