Your IP : 216.73.216.213


Current Path : /opt/alt/python310/lib64/python3.10/distutils/tests/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/distutils/tests/__pycache__/test_clean.cpython-310.pyc

o

0�i��@stdZddlZddlZddlmZddlmZddlmZGdd�dej	ej
ej�Zdd	�Z
ed
kr8ee
��dSdS)z"Tests for distutils.command.clean.�N)�clean)�support)�run_unittestc@seZdZdd�ZdS)�
cleanTestCasecs�|��\�}t|�}�fdd�dD�}|D]#\}}t�|�t|||�|dkr)qdD]}|�tj�||��q+qd|_|�	�|�
�|D]\}}|�tj�|�d|�qFd|_|�	�|�
�dS)Ncsg|]}|tj��|�f�qS�)�os�path�join)�.0�d�Zpkg_dirr�A/opt/alt/python310/lib64/python3.10/distutils/tests/test_clean.py�
<listcomp>s�z1cleanTestCase.test_simple_run.<locals>.<listcomp>)Z
build_tempZ	build_libZ
bdist_baseZ
build_scripts�
build_baser)ZoneZtwoZthree�z%s was not removed)
Zcreate_distrr�mkdir�setattrZ
write_filerr	�allZensure_finalized�runZassertFalse�exists)�selfZdist�cmd�dirs�namer�frrr
�test_simple_run
s.
�
��zcleanTestCase.test_simple_runN)�__name__�
__module__�__qualname__rrrrr
r	srcCs
t�t�S)N)�unittestZ	makeSuiterrrrr
�
test_suite-s
r �__main__)�__doc__rrZdistutils.command.cleanrZdistutils.testsrZtest.supportrZTempdirManagerZLoggingSilencerZTestCaserr rrrrr
�<module>s�$�