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.opt-1.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.datacCsLt�|j��|�}|j�t�|��}tj�dt	|��|j�
tjjd�dS)Nr)r	r�root�joinpath�
enter_contextZas_file�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_pathszTestZip._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��assertEqualrrrrr�test_zip_version$�zTestZip.test_zip_versioncCs8|�t��
td�Wd�dS1swYdS)Nzdefinitely-not-installed)ZassertRaisesrrrrrr�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_textrrrr�test_missing_metadata2szTestZip.test_missing_metadatacCr!)Nr*r#r$rrrr�test_case_insensitive5r'zTestZip.test_case_insensitivecC�"td�D]
}t|j�|��}qdS�Nr"�rr�distZlocate_file�rrrrrr�
test_files8��zTestZip.test_filescCstttjdd�d��}dS)N�)r)�listrrr)rZdistsrrr�test_one_distribution=szTestZip.test_one_distributionN)
�__name__�
__module__�__qualname__rrrr&r(r,r.r/r5r9rrrrrsrc@s$eZdZdd�Zdd�Zdd�ZdS)�TestEggcCr)Nzexample-21.12-py3.6.eggrrrrrrDr z
TestEgg.setUpcCr0r1r2r4rrrr5Kr6zTestEgg.test_filescCstd�}dSr1)r)rr3rrr�test_normalized_namePszTestEgg.test_normalized_nameN)r:r;r<rr5r>rrrrr=Bsr=)rZunittest�
contextlibr�importlib.metadatarrrrrr�	importlibr	Ztest.supportr
ZTestCaserr=rrrr�<module>s /