| Server IP : 3.111.61.48 / Your IP : 216.73.216.197 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 : |
o
�9j
� @ sx d Z ddlZddlZddlmZ ddlmZ ddlmZ G dd� dej ej
ejej�Z
dd � Zed
kr:ee� � dS dS )z)Tests for distutils.command.install_data.� N)�install_data)�support)�run_unittestc @ s e Zd Zdd� ZdS )�InstallDataTestCasec
C sF | � � \}}t|�}tj�|d� |_}tj�|d�}| �|d� tj�|d�}tj�|d�}| �|d� |||gfg|_| �|� � |||gfg� |�
� |�� | �t|�
� �d� tj�|�d }| �tj�tj�||��� tj�|�d } | �tj�tj�|| ��� g |_d|_|�
� |�� | �t|�
� �d� | �tj�tj�||��� | �tj�tj�|| ��� g |_tj�|d �|_tj�|jd
�}
tj�|d�}tj�|jd�}| �|d
� |||gfd
|gf|g fg|_|�
� |�� | �t|�
� �d� | �tj�tj�||��� | �tj�tj�|| ��� d S )N�inst�one�xxx�inst2�two� ���� �root�inst3�inst4�three�xx� )�create_distr �os�path�join�install_dir�
write_file�
data_files�assertEqual�
get_inputs�ensure_finalized�run�len�get_outputs�split�
assertTrue�exists�outfiles�warn_dirr )
�self�pkg_dir�dist�cmdr r r r
�rtwo�roner r r � r, �8/usr/lib/python3.10/distutils/tests/test_install_data.py�test_simple_run sN
� z#InstallDataTestCase.test_simple_runN)�__name__�
__module__�__qualname__r. r, r, r, r- r s r c C s
t �t�S )N)�unittest� makeSuiter r, r, r, r- �
test_suiteG s
r4 �__main__)�__doc__r r2 �distutils.command.install_datar �distutils.testsr �test.supportr �TempdirManager�LoggingSilencer�EnvironGuard�TestCaser r4 r/ r, r, r, r- �<module> s �>�