a
    ze8                     @   sX   d Z ddlZddlZddlZddlmZmZ e  G dd dejZe	dkrTe
  dS )z2Tests for the pdeps script in the Tools directory.    N)skip_if_missingimport_toolc                   @   s(   e Zd Zedd Zdd Zdd ZdS )
PdepsTestsc                 C   s   t d| _d S )Npdeps)r   r   self r   0/usr/lib/python3.9/test/test_tools/test_pdeps.py
setUpClass   s    zPdepsTests.setUpClassc              	   C   s|   t  `}tj|d}t|d}|d W d    n1 sB0    Y  | j|i  W d    n1 sn0    Y  d S )NZfoowz#!/this/will/fail)	tempfileTemporaryDirectoryospathjoinopenwriter   process)r   Ztmpdirfnstreamr   r   r	   test_process_errors   s
    
(zPdepsTests.test_process_errorsc                 C   s   | j dg i d S )Na)r   Zinverser   r   r   r	   test_inverse_attribute_error   s    z'PdepsTests.test_inverse_attribute_errorN)__name__
__module____qualname__classmethodr
   r   r   r   r   r   r	   r      s   
r   __main__)__doc__r   Zunittestr   Ztest.test_toolsr   r   ZTestCaser   r   mainr   r   r   r	   <module>   s   