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/test/test_importlib/__pycache__/test_zip.cpython-310.pyc
o

�in
�@s�ddlZddlZddlmZddlmZmZmZmZm	Z	m
Z
ddlmZddl
mZe�Gdd�dej��Ze�Gdd	�d	e��ZdS)
�N)�	ExitStack)�PackageNotFoundError�distribution�
distributions�entry_points�files�version)�	resources)�
requires_zlibc@sXeZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�Zdd�ZdS)�TestZipztest.test_importlib.datacCsbt�|j��|�}|j�t�|��}|j�d�sJ|j��tj	�
dt|��|j�tj	j
d�dS)Nzexample-r)r	r�root�joinpath�
enter_contextZas_file�name�
startswith�sys�path�insert�str�callback�pop)�self�filenameZpkg_file�file�r�9/usr/local/lib/python3.10/test/test_importlib/test_zip.py�_fixture_on_paths
zTestZip._fixture_on_pathcC�$t�|_|�|jj�|�d�dS)Nzexample-21.12-py3-none-any.whl�rr	Z
addCleanup�closer�rrrr�setUp�z
TestZip.setUpcC�|�td�d�dS)N�example�21.12��assertEqualrr rrr�test_zip_version$�zTestZip.test_zip_versioncCs8|�t��
td�Wd�dS1swYdS)Nzdefinitely-not-installed)ZassertRaisesrrr rrr�test_zip_version_does_not_match's
"�z'TestZip.test_zip_version_does_not_matchcCs:tdd�}|d}|�|jd�|d}|�|jd�dS)NZconsole_scripts)�groupr$zexample:main�Example)rr'�value)rZscriptsZentry_pointrrr�test_zip_entry_points+s

zTestZip.test_zip_entry_pointscCs|�td��d��dS)Nr$zdoes not exist)ZassertIsNoner�	read_textr rrr�test_missing_metadata2szTestZip.test_missing_metadatacCr#)Nr,r%r&r rrr�test_case_insensitive5r)zTestZip.test_case_insensitivecC�2td�D]}t|j�|��}d|vsJ|��qdS)Nr$z.whl/�rr�distZlocate_file�rrrrrr�
test_files8��zTestZip.test_filescCs,tttjdd�d��}t|�dksJ�dS)N�)r)�listrrr�len)rZdistsrrr�test_one_distribution=szTestZip.test_one_distributionN)
�__name__�
__module__�__qualname__rrr!r(r*r.r0r1r6r;rrrrrsrc@s$eZdZdd�Zdd�Zdd�ZdS)�TestEggcCr)Nzexample-21.12-py3.6.eggrr rrrr!Dr"z
TestEgg.setUpcCr2)Nr$z.egg/r3r5rrrr6Kr7zTestEgg.test_filescCstd�}|jdksJ�dS)Nr$)rZ_normalized_name)rr4rrr�test_normalized_namePszTestEgg.test_normalized_nameN)r<r=r>r!r6r@rrrrr?Bsr?)rZunittest�
contextlibr�importlib.metadatarrrrrr�	importlibr	Ztest.supportr
ZTestCaserr?rrrr�<module>s /