
    pf                     P    d dl mZ d dlmZ d dlmZ d dlmZ d dlZ G d d      Z	y)    )register)Distribution)RemovedCommandError)mockNc                       e Zd Zd Zy)TestRegisterc                 ,   t               }t        j                         t        j                         t        j                         fg|_        t	        |      }t        j                  t              5  |j                          ddd       y# 1 sw Y   yxY w)z;Ensure that the register command has been properly removed.N)	r   r   Mock
dist_filesr   pytestraisesr   run)selfdistcmds      V/home/Script/Script_env/lib/python3.12/site-packages/setuptools/tests/test_register.pytest_register_exceptionz$TestRegister.test_register_exception   s`    ~ IIKdiikBCtn]]./ 	GGI	 	 	s   0B

BN)__name__
__module____qualname__r        r   r   r   
   s    r   r   )
setuptools.command.registerr   setuptools.distr   setuptools.errorsr   unittestr   r   r   r   r   r   <module>r      s    0 ( 1  	 	r   