403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.217.130
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_spawn.cpython-36.opt-2.pyc
3

�
�^�@s�ddlZddlZddlZddlZddlmZddlmZmZddlm	Z
ddlmZddlm
Z
ddlmZddlmZddlm	Z	Gd	d
�d
e	je	jej�Zdd�Zed
kr�ee��dS)�N)�mock)�run_unittest�
unix_shell)�support)�find_executable)�_nt_quote_args)�spawn)�DistutilsExecErrorc@s6eZdZdd�Zejejdkd�dd��Zdd	�Z	d
S)�
SpawnTestCasecCsFx@ddgddgfddgddgffD]\}}t|�}|j||�q"WdS)Nz
with spaceZnospacez"with space"Znochange)r�assertEqual)�self�argsZwanted�res�r�//opt/alt/python36/lib64/python3.6/test_spawn.py�test_nt_quote_argssz SpawnTestCase.test_nt_quote_args�nt�posixzRuns only under posix or ntcCs�|j�}tjdkr2tjj|d�}|j|dt�ntjj|d�}|j|d�tj|d�|j	t
t|g�tjdkr�tjj|d�}|j|dt�ntjj|d�}|j|d�tj|d�t|g�dS)	N�win32zfoo.shz#!%s
exit 1zfoo.batzexit 1i�z#!%s
exit 0zexit 0)Zmkdtemp�sys�platform�os�path�joinZ
write_filer�chmodZassertRaisesr	r)rZtmpdirZexerrr�
test_spawns

zSpawnTestCase.test_spawnc&Cs&tj���}tj}|d}tjj||�}t|d��WdQRXtj|tj	�t
||d�}|j||�tj
dkr�t
||d�}|j||�tj|��t
|�}|j||�WdQRXd|}t
||d�}|j|�tj��<}tjd|��$|jd�t
|�}|j||�WdQRXWdQRXWdQRXdS)Nz.exe�wb)rrZ
dontexist_zdistutils.spawn.os.defpath�PATH)�test_supportZtemp_dirZTESTFNrrr�openr�stat�S_IXUSRrrrrZ
change_cwdZassertIsNoneZEnvironmentVarGuardrZpatch�pop)rZtmp_dirZprogram_noeextZprogram�filename�rvZdont_exist_program�envrrr�test_find_executable:s.




z"SpawnTestCase.test_find_executableN)rr)
�__name__�
__module__�__qualname__r�unittestZ
skipUnlessr�namerr&rrrrr
s
r
cCs
tjt�S)N)r*Z	makeSuiter
rrrr�
test_suitecsr,�__main__)rr rr*rZtest.supportrrZtestrrZdistutils.spawnrrrZdistutils.errorsr	Zdistutils.testsZTempdirManagerZLoggingSilencerZTestCaser
r,r'rrrr�<module>s"Q

Youez - 2016 - github.com/yon3zu
LinuXploit