Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.11/distutils/tests/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.11/distutils/tests/__pycache__/test_install_scripts.cpython-311.pyc

�

SԚg�	���dZddlZddlZddlmZddlmZddlmZGd�dej	ej
ej��Ze
dkrej��dSdS)	z,Tests for distutils.command.install_scripts.�N)�install_scripts)�Distribution)�supportc��eZdZd�Zd�ZdS)�InstallScriptsTestCasec��t��}tjd���|jd<tjddd���|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�assertFalserr�assertIsNone�	build_dir�install_dir�finalize_options�
assertTrue�assertEqual)�self�dist�cmds   �A/usr/local/lib/python3.11/distutils/tests/test_install_scripts.py�test_default_settingsz,InstallScriptsTestCase.test_default_settingss,���~�~��$+�$8�$�%&�%&�%&����!�&-�&:�)���'�'�'����#�
�d�#�#�������#�#�#������(�(�(����#�-�(�(�(����#�/�*�*�*�����������	�"�"�"������'�'�'������
�3�3�3������-�8�8�8�8�8�c����|����g���fd�}|dd��|dd��|dd��|���}t��}tj����|jd	<tj|d
d
���|jd<t|��}|���|���tj	|��}�D]}|�
||���dS)
Nc�����|��ttj��|��d��}	|�|��|���dS#|���wxYw)N�w)�append�open�os�path�join�write�close)�name�text�f�expected�sources   ��r�write_scriptz>InstallScriptsTestCase.test_installation.<locals>.write_script*sk����O�O�D�!�!�!��R�W�\�\�&�$�/�/��5�5�A�
�����
�
�
����	�	�	�	�	�����	�	�	�	���s�A1�1Bz
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
r	rrr
r)�mkdtemprrrrrr�runr%�listdir�assertIn)	rr/�targetrr�	installedr*r-r.s	       @@r�test_installationz(InstallScriptsTestCase.test_installation&sS������������	�	�	�	�	�	�	��\�%-�	/�	/�	/�	��\�%-�	/�	/�	/�	��Z�#-�	/�	/�	/��������~�~��$+�$8�v�$N�$N�$N����!�&-�&:�"���'�'�'����#�
�d�#�#�����������	�	�	��J�v�&�&�	��	+�	+�D��M�M�$�	�*�*�*�*�	+�	+rN)�__name__�
__module__�__qualname__rr6�rrrrs2������9�9�9�,$+�$+�$+�$+�$+rr�__main__)�__doc__r%�unittest�!distutils.command.install_scriptsr�distutils.corer�distutils.testsr�TempdirManager�LoggingSilencer�TestCaserr7�mainr:rr�<module>rEs���2�2�	�	�	�	�����=�=�=�=�=�=�'�'�'�'�'�'�#�#�#�#�#�#�>+�>+�>+�>+�>+�W�3�$�4�%�.�>+�>+�>+�B�z����H�M�O�O�O�O�O��r

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists