o
    Zh                     @   s:   d Z ddlZddlmZ ddlmZ G dd dejZdS )z"Tests for distutils.command.clean.    N)clean)supportc                   @   s   e Zd Zdd ZdS )	TestCleanc                    s   |   \ }t|} fdddD }|D ]#\}}t| t||| |dkr)qdD ]}| tj|| q+qd|_|	  |
  |D ]\}}tj|rWJ | dqFd|_|	  |
  d S )Nc                    s   g | ]}|t j |fqS  )ospathjoin).0dZpkg_dirr   ]/var/www/html/lang_env/lib/python3.10/site-packages/setuptools/_distutils/tests/test_clean.py
<listcomp>   s    z-TestClean.test_simple_run.<locals>.<listcomp>)Z
build_tempZ	build_libZ
bdist_baseZbuild_scripts
build_baser   )onetwothree   z was not removed)Zcreate_distr   r   mkdirsetattr
write_filer   r   allZensure_finalizedrunexists)selfdistcmddirsnamer   f_namer   r   r   test_simple_run	   s*   

zTestClean.test_simple_runN)__name__
__module____qualname__r    r   r   r   r   r      s    r   )__doc__r   Zdistutils.command.cleanr   Zdistutils.testsr   ZTempdirManagerr   r   r   r   r   <module>   s
    