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_version.cpython-310.pyc
o

�iz
�@sddZddlZddlmZddlmZddlmZGdd�dej�Zdd	�Z	e
d
kr0ee	��dSdS)zTests for distutils.version.�N)�LooseVersion)�
StrictVersion)�run_unittestc@s$eZdZdd�Zdd�Zdd�ZdS)�VersionTestCasecCsPtd�}|�|jd�|�|jd�|�t|�d�td�}|�t|�d�dS)Nz1.2.3a1)���)�arz1.2.0�1.2)r�assertEqual�versionZ
prerelease�str)�selfr�r�9/usr/local/lib/python3.10/distutils/tests/test_version.py�test_prerelease	szVersionTestCase.test_prereleasecCsdddtfdddtfddtfd	d
tfddd
dddddddtff}|D][\}}}zt|��t|��}WntyG|tur?Yq"td||f��w|�||d||||f�t|��|�}|�||d||||f�t|��t��}|�|td|||f�q"dS)N�z1.5.1z1.5.2b2����161�3.10a��8.02rr�3.4j�
1996.07.12�3.2.pl0�3.1.1.6�2g6�11g)z0.9z2.2r)�1.2.1r
r)�1.1�1.2.2r)r
rr)rr r)r r
r)r
r r)z0.4.0z0.4r�1.13++�5.5.kwz&cmp(%s, %s) shouldn't raise ValueError� cmp(%s, %s) should be %s, got %s�,cmp(%s, %s) should be NotImplemented, got %s)�
ValueErrorr�_cmp�AssertionErrorr�object�assertIs�NotImplemented�rZversionsZv1Zv2Zwanted�resrrr�test_cmp_strictsX���
��
�����zVersionTestCase.test_cmp_strictc
Cs�d}|D]C\}}}t|��t|��}|�||d||||f�t|��|�}|�||d||||f�t|��t��}|�|td|||f�qdS)N)r)rrrr)rrr)rrr)rrr)z0.960923z	2.2beta29r)r!r"rr#r$)rr&rr(r)r*r+rrr�test_cmp:s*

��
�����zVersionTestCase.test_cmpN)�__name__�
__module__�__qualname__rr-r.rrrrrs	(rcCs
t�t�S)N)�unittestZ	makeSuiterrrrr�
test_suiteSs
r3�__main__)�__doc__r2Zdistutils.versionrrZtest.supportrZTestCaserr3r/rrrr�<module>sL�