
    e
                         d Z ddlZddlZddlmZmZmZ ddlmZ ddl	m
Z
  G d de
j        ej                  Zedk    r ej                     dS dS )	zTests for distutils.dep_util.    N)newernewer_pairwisenewer_group)DistutilsFileError)supportc                        e Zd Zd Zd Zd ZdS )DepUtilTestCasec                    |                                  }t          j                            |d          }t          j                            t
                    }|                     t          t          ||           | 	                    |           | 
                    t          |d                     | 
                    t          ||                     |                     t          ||                     d S )NnewI_dont_exist)mkdtempospathjoinabspath__file__assertRaisesr   r   
write_file
assertTrueassertFalse)selftmpdirnew_fileold_files       /  /home/conda/feedstock_root/build_artifacts/python-split_1708115622739/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.11/distutils/tests/test_dep_util.py
test_newerzDepUtilTestCase.test_newer   s    7<<..7??8,, 	,eXxHHH 	!!!h77888h11222 	x2233333    c                    |                                  }t          j                            |d          }t          j                            |d          }t          j        |           t          j        |           t          j                            |d          }t          j                            |d          }t          j                            t                    }t          j                            |d          }|                     |           |                     |           |                     |           |                     t          ||g||g          |g|gf           d S )Nsourcestargetsonetwofour)
r   r   r   r   mkdirr   r   r   assertEqualr   )r   r   r   r    r!   r"   threer#   s           r   test_newer_pairwisez#DepUtilTestCase.test_newer_pairwise   s"   ',,vy11',,vy11

gll7E**gll7E**))w||GV,,c
UDMBB%	* 	* 	* 	* 	*r   c                    |                                  }t          j                            |d          }t          j        |           t          j                            |d          }t          j                            |d          }t          j                            |d          }t          j                            t                    }|                     |           |                     |           |                     |           |                     t          |||g|                     | 
                    t          |||g|                     t          j        |           |                     t          t          |||g|           | 
                    t          |||g|d                     |                     t          |||g|d                     d S )Nr   r!   r"   r&   ignore)missingr   )r   r   r   r   r$   r   r   r   r   r   r   remover   OSError)r   r   r   r!   r"   r&   r   s          r   test_newer_groupz DepUtilTestCase.test_newer_group/   s   ',,vy11
gll7E**gll7E**Wg..7??8,, 	S#u$5x@@AAAc3%95AABBB 		#';c80DeLLLc3%95-57 7 7 	8 	8 	8 	S#x$8%,35 5 5 	6 	6 	6 	6 	6r   N)__name__
__module____qualname__r   r'   r-    r   r   r	   r	   	   sA        4 4 4&* * *"6 6 6 6 6r   r	   __main__)__doc__unittestr   distutils.dep_utilr   r   r   distutils.errorsr   distutils.testsr   TempdirManagerTestCaser	   r.   mainr1   r   r   <module>r;      s    # #  				 A A A A A A A A A A / / / / / / # # # # # #?6 ?6 ?6 ?6 ?6g,h.? ?6 ?6 ?6D zHMOOOOO r   