U
    uit                     @   s2   d 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.bdist.    )bdist)supportc                   @   s   e Zd Zdd Zdd ZdS )	TestBuildc                 C   s`   |   d }t|}dg|_|  |jdgks4tdddddddg}t|j}||ks\td S )	N   gztarbztarZrpmtarxztarzipztar)create_distr   formatsensure_finalizedAssertionErrorsortedZformat_commands)selfdistcmdr   found r   J/tmp/pip-unpacked-wheel-9osl9suo/setuptools/_distutils/tests/test_bdist.pytest_formats   s    	
zTestBuild.test_formatsc                 C   sl   |   d }t|}d|_|  ||jd< dg}|D ]0}||}t|ddrRq6|js6t| dq6d S )Nr   Tr   
bdist_dumbZ_unsupportedFz$ should take --skip-build from bdist)r   r   
skip_buildr   command_objget_finalized_commandgetattrr   )r   r   r   namesnameZsubcmdr   r   r   test_skip_build   s    

zTestBuild.test_skip_buildN)__name__
__module____qualname__r   r   r   r   r   r   r      s   r   N)__doc__Zdistutils.command.bdistr   Zdistutils.testsr   ZTempdirManagerr   r   r   r   r   <module>   s   