
    <eJ                         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ej                  Ze	dk    r ej
                     dS dS )z2Tests for the pdeps script in the Tools directory.    N)skip_if_missingimport_toolc                   0    e Zd Zed             Zd Zd ZdS )
PdepsTestsc                 .    t          d          | _        d S )Npdeps)r   r   selfs    1/usr/lib/python3.11/test/test_tools/test_pdeps.py
setUpClasszPdepsTests.setUpClass   s     ))


    c                 R   t          j                    5 }t          j                            |d          }t          |dd          5 }|                    d           d d d            n# 1 swxY w Y   | j                            |i            d d d            d S # 1 swxY w Y   d S )Nfoowzutf-8)encodingz#!/this/will/fail)	tempfileTemporaryDirectoryospathjoinopenwriter   process)r
   tmpdirfnstreams       r   test_process_errorszPdepsTests.test_process_errors   s   (** 	'ffe,,Bb#000 2F01112 2 2 2 2 2 2 2 2 2 2 2 2 2 2Jr2&&&		' 	' 	' 	' 	' 	' 	' 	' 	' 	' 	' 	' 	' 	' 	' 	' 	' 	's5   3BA)B)A-	-B0A-	1BB #B c                 >    | j                             dg i           d S )Na)r   inverser	   s    r   test_inverse_attribute_errorz'PdepsTests.test_inverse_attribute_error   s"    
C9%%%%%r   N)__name__
__module____qualname__classmethodr   r   r!    r   r   r   r      sK        * * [*' ' '& & & & &r   r   __main__)__doc__r   unittestr   test.test_toolsr   r   TestCaser   r"   mainr&   r   r   <module>r-      s    8 8 				   8 8 8 8 8 8 8 8    & & & & &" & & && zHMOOOOO r   