o
    Zh                     @   sr   d Z ddlZddlmZ ddlZddlmZ ddlmZ ej	j
ejdkddej	jd	ded
dd ZdS )zdevelop tests    N)mock)SetuptoolsDeprecationWarning)Distributionwin32znon-Windows only)reasonz8bdist_rpm is long deprecated, should we remove it? #1988z%distutils.command.bdist_rpm.bdist_rpmc                 C   s`   t tddgddgd}|  tt |  W d    n1 s$w   Y  | j  d S )Nzsetup.pyZ	bdist_rpmZfoohi)script_nameZscript_argsnameZ
py_modules)	r   dictZparse_command_linepytestZwarnsr   Zrun_commandsrunZassert_called_once)Zdistutils_cmdZ
tmpdir_cwddist r   _/var/www/html/lang_env/lib/python3.10/site-packages/setuptools/tests/test_bdist_deprecations.pytest_bdist_rpm_warning   s   
r   )__doc__sysZunittestr   r   
setuptoolsr   Zsetuptools.distr   markZskipifplatformZxfailpatchr   r   r   r   r   <module>   s    