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.pyc
3

x2_��@s�dZddlZddlZddlmZddlmZmZddlm	Z	ddl
mZyddlZWne
k
rldZYnXGdd�de	je	jej�Zd	d
�Zedkr�ee��dS)z"Tests for distutils.command.check.�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�metadataZoptions�pkg_info�dist�cmd�name�value�r�?/opt/alt/python36/lib64/python3.6/distutils/tests/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 ß)rrrrrZdescription�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)rr
rr�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_restructuredtextrrr rr)rr$r
rrr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"�pygmentsrr#�str)rZexample_rst_docsZrest_with_coder
rrr%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*r0r1rrrrrs
!$rcCs
tjt�S)N)r5Z	makeSuiterrrrr�
test_suite�sr6�__main__)�__doc__r,r5Ztest.supportrZdistutils.command.checkrrZdistutils.testsrZdistutils.errorsrr.�ImportErrorZLoggingSilencerZTempdirManagerZTestCaserr6r2rrrr�<module>s 


Youez - 2016 - github.com/yon3zu
LinuXploit