U
    ui                     @   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 ]F\}}t| t||| |dkrRq*dD ]}| tj|| qVq*d|_|	  |
  |D ]"\}}tj|rt| dqd|_|	  |
  d S )Nc                    s   g | ]}|t j |fqS  )ospathjoin).0dZpkg_dirr   J/tmp/pip-unpacked-wheel-9osl9suo/setuptools/_distutils/tests/test_clean.py
<listcomp>   s   z-TestClean.test_simple_run.<locals>.<listcomp>)
build_temp	build_libZ
bdist_basebuild_scripts
build_baser   )ZoneZtwoZthree   z was not removed)Zcreate_distr   r   mkdirsetattr
write_filer   r   allensure_finalizedrunexistsAssertionError)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   