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

x2_A
�@s|dZddlZddlZddlmZddlmZddlmZddl	m
Z
Gdd�dejejej
�Zd	d
�Zedkrxe
e��dS)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|j
�|j�|j|j�|j|j�|j
|j	d�|j
|j
d�dS)Nz/foo/bar)�
build_scripts�buildz/splat/funk�)r�force�
skip_build�install)rr�DummyCommand�command_objrZassertFalser
rZassertIsNoneZ	build_dirZinstall_dir�finalize_optionsZ
assertTrueZassertEqual)�self�dist�cmd�r�I/opt/alt/python36/lib64/python3.6/distutils/tests/test_install_scripts.py�test_default_settingss"z,InstallScriptsTestCase.test_default_settingscs�|j��g���fdd�}|dd�|dd�|dd�|j�}t�}tj�d	�|jd
<tj|ddd�|jd
<t|�}|j�|j�tj	|�}x�D]}|j
||�q�WdS)Nc
s<�j|�ttjj�|�d�}z|j|�Wd|j�XdS)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
)rrr	)rr
rr)Zmkdtemprrr
rrrZrunr�listdirZassertIn)rr#�targetrrZ	installedrr)r!r"r�test_installation's&




z(InstallScriptsTestCase.test_installationN)�__name__�
__module__�__qualname__rr&rrrrr
srcCs
tjt�S)N)�unittestZ	makeSuiterrrrr�
test_suiteNsr+�__main__)�__doc__rr*Z!distutils.command.install_scriptsrZdistutils.corerZdistutils.testsrZtest.supportrZTempdirManagerZLoggingSilencerZTestCaserr+r'rrrr�<module>s?

Youez - 2016 - github.com/yon3zu
LinuXploit