HEX
Server: LiteSpeed
System: Linux server.nevid-deploma.com 4.18.0-553.111.1.lve.el8.x86_64 #1 SMP Fri Mar 13 13:42:17 UTC 2026 x86_64
User: smilepac (1037)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/cppython/lib/python3.8/test/test_importlib/__pycache__/test_zip.cpython-38.pyc
U

/D�g�	�@s�ddlZddlZddlmZddlmZmZmZmZm	Z	m
Z
ddlmZddl
mZeGdd�dej��ZeGdd	�d	e��ZdS)
�N)�	ExitStack)�distribution�entry_points�files�PackageNotFoundError�version�
distributions��path)�
requires_zlibc@sPeZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�ZdS)�TestZipztest.test_importlib.datacCsRt�|_|�|jj�|j�t|jd��}tj�dt	|��|j�
tjjd�dS)Nzexample-21.12-py3-none-any.whlr�rZ	resourcesZ
addCleanup�close�
enter_contextr
�root�sys�insert�str�callback�pop)�selfZwheel�r�;/opt/cppython/lib/python3.8/test/test_importlib/test_zip.py�setUps
�z
TestZip.setUpcCs|�td�d�dS)N�example�21.12��assertEqualr�rrrr�test_zip_versionszTestZip.test_zip_versionc	Cs"|�t��td�W5QRXdS)Nzdefinitely-not-installed)ZassertRaisesrrrrrr�test_zip_version_does_not_matchsz'TestZip.test_zip_version_does_not_matchcCs>tt�d�}|d}|�|jd�|d}|�|jd�dS)NZconsole_scriptsrzexample:main�Example)�dictrr�value)rZscriptsZentry_pointrrr�test_zip_entry_points#s
zTestZip.test_zip_entry_pointscCs|�td��d��dS)Nrzdoes not exist)ZassertIsNonerZ	read_textrrrr�test_missing_metadata*szTestZip.test_missing_metadatacCs|�td�d�dS)Nr!rrrrrr�test_case_insensitive-szTestZip.test_case_insensitivecCs2td�D]$}t|j�|��}d|kst|��qdS)Nrz.whl/�rr�distZlocate_file�AssertionError�r�filer
rrr�
test_files0szTestZip.test_filescCs,tttjdd�d��}t|�dks(t�dS)N�r	)�listrrr
�lenr))rZdistsrrr�test_one_distribution5szTestZip.test_one_distributionN)�__name__�
__module__�__qualname__rrrr r$r%r&r,r0rrrrrs
rc@seZdZdd�Zdd�ZdS)�TestEggcCsRt�|_|�|jj�|j�t|jd��}tj�dt	|��|j�
tjjd�dS)Nzexample-21.12-py3.6.eggrr
)rZeggrrrr<s
�z
TestEgg.setUpcCs2td�D]$}t|j�|��}d|kst|��qdS)Nrz.egg/r'r*rrrr,FszTestEgg.test_filesN)r1r2r3rr,rrrrr4:s
r4)rZunittest�
contextlibr�importlib.metadatarrrrrrZimportlib.resourcesr
Ztest.supportrZTestCaserr4rrrr�<module>s +