403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.217.103
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_install_lib.cpython-36.pyc
3

x2_��@s�dZddlZddlZddlZddlZddlmZddlm	Z	ddl
mZddlm
Z
ddlmZGdd	�d	ejejejej�Zd
d�Zedkr�ee��dS)
z)Tests for distutils.command.install_data.�N)�install_lib)�	Extension)�support)�DistutilsOptionError)�run_unittestc@sBeZdZdd�Zejejd�dd��Zdd�Z	dd	�Z
d
d�ZdS)
�InstallLibTestCasecCs�|j�d}t|�}|j�|j|jd�|j|jd�d|_|jt|j�d|_|jt|j�d|_|j�|j|jd�dS)N�r�foo�4�2�)�create_distrZfinalize_options�assertEqual�compile�optimizeZassertRaisesr)�self�dist�cmd�r�E/opt/alt/python36/lib64/python3.6/distutils/tests/test_install_lib.py�test_finalize_optionssz(InstallLibTestCase.test_finalize_optionszbyte-compile disabledcCs�|j�\}}tj|�t|�}d|_|_tjj|d�}|j|d�|j	|g�t
jjddd�}t
jjd|jd�}|j
tjj|��|j
tjj|��dS)Nrzfoo.pyz
# python file�)�optimization)r
�os�chdirrrr�path�join�
write_file�byte_compile�	importlib�util�cache_from_sourceZ
assertTrue�exists)r�project_dirrr�fZpyc_fileZpyc_opt_filerrr�test_byte_compile%s

z$InstallLibTestCase.test_byte_compilecCs�|j�\}}tj|�tjd�t|�}d|_|_|j�|_tj	j
|dd�}|j|d�tddg�g|j
_dg|j
_d|j
_|j�}|jt|�d|�dS)	N�spamrz__init__.pyz# python packager	�xxxzsetup.py�)r
rr�mkdirrrr�mkdtemp�install_dirrrrr�distribution�ext_modules�packages�script_nameZget_outputsr�len)rr#rrr$Zoutputsrrr�test_get_outputs5s



z#InstallLibTestCase.test_get_outputscCs�|j�\}}tj|�tjd�t|�}d|_|_|j�|_tj	j
|dd�}|j|d�tddg�g|j
_dg|j
_d|j
_|j�}|jt|�d|�dS)	Nr&rz__init__.pyz# python packager	r'zsetup.pyr)r
rrr)rrrr*r+rrrrr,r-r.r/Z
get_inputsrr0)rr#rrr$Zinputsrrr�test_get_inputsIs



z"InstallLibTestCase.test_get_inputsc
Csl|j�d}t|�}d|_d|_tj}dt_z|jg�Wd|t_X|jd|jdd|jdd�dS)NrTzbyte-compiling is disabledrr)	r
rrr�sys�dont_write_bytecoderZassertInZlogs)rrrZold_dont_write_bytecoderrr�test_dont_write_bytecode]sz+InstallLibTestCase.test_dont_write_bytecodeN)�__name__�
__module__�__qualname__r�unittestZskipIfr3r4r%r1r2r5rrrrrs
rcCs
tjt�S)N)r9Z	makeSuiterrrrr�
test_suiteosr:�__main__)�__doc__r3r�importlib.utilrr9Zdistutils.command.install_librZdistutils.extensionrZdistutils.testsrZdistutils.errorsrZtest.supportrZTempdirManagerZLoggingSilencerZEnvironGuardZTestCaserr:r6rrrr�<module>s ^

Youez - 2016 - github.com/yon3zu
LinuXploit