HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.10/distutils/tests/__pycache__/test_dep_util.cpython-310.pyc
o

�i�@s�dZddlZddlZddlmZmZmZddlmZddl	m
Z
ddlmZGdd�de
j
ej�Zd	d
�Zedkr@ee��dSdS)zTests for distutils.dep_util.�N)�newer�newer_pairwise�newer_group)�DistutilsFileError)�support)�run_unittestc@s$eZdZdd�Zdd�Zdd�ZdS)�DepUtilTestCasecCsp|��}tj�|d�}tj�t�}|�tt||�|�	|�|�
t|d��|�
t||��|�t||��dS)N�newZI_dont_exist)�mkdtemp�os�path�join�abspath�__file__�assertRaisesrr�
write_file�
assertTrue�assertFalse)�self�tmpdirZnew_file�old_file�r�:/usr/local/lib/python3.10/distutils/tests/test_dep_util.py�
test_newers
zDepUtilTestCase.test_newercCs�|��}tj�|d�}tj�|d�}t�|�t�|�tj�|d�}tj�|d�}tj�t�}tj�|d�}|�|�|�|�|�|�|�t	||g||g�|g|gf�dS)N�sources�targets�one�two�four)
r
rrr
�mkdirrrrZassertEqualr)rrrrrr�threerrrr�test_newer_pairwises





�z#DepUtilTestCase.test_newer_pairwisecCs�|��}tj�|d�}t�|�tj�|d�}tj�|d�}tj�|d�}tj�t�}|�|�|�|�|�|�|�t	|||g|��|�
t	|||g|��t�|�|�t
t	|||g|�|�
t	|||g|dd��|�t	|||g|dd��dS)Nrrrr �ignore)�missingr)r
rrr
rrrrrrr�remover�OSError)rrrrrr rrrr�test_newer_group0s(




��z DepUtilTestCase.test_newer_groupN)�__name__�
__module__�__qualname__rr!r&rrrrr
srcCs
t�t�S)N)�unittestZ	makeSuiterrrrr�
test_suiteLs
r+�__main__)�__doc__r*rZdistutils.dep_utilrrrZdistutils.errorsrZdistutils.testsrZtest.supportrZTempdirManagerZTestCaserr+r'rrrr�<module>sB�