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_path.cpython-38.opt-2.pyc
U

/D�g!�@s�ddlZddlZddlmZddlmZddlmZGdd�dejej�Z	Gdd	�d	�Z
Gd
d�de
ej�ZGdd
�d
e
ej�ZGdd�de
ej
ej�Zedkr�e��dS)�N)�	resources�)�data01)�utilc@seZdZdd�ZdS)�CommonTestsc	Cst�||��W5QRXdS)N)r�path)�self�packager�r
�</opt/cppython/lib/python3.8/test/test_importlib/test_path.py�execute
szCommonTests.executeN)�__name__�
__module__�__qualname__rr
r
r
rr	src@seZdZdd�ZdS)�	PathTestsc
CsLt�|jd��4}|jddd��}|��}W5QRX|�d|�W5QRXdS)N�
utf-8.file�rzutf-8)�encodingzHello, UTF-8 world!
)rr�data�open�readZassertEqual)rr�file�textr
r
r�test_readingszPathTests.test_readingN)r
rrrr
r
r
rrsrc@seZdZeZdS)�
PathDiskTestsN)r
rrrrr
r
r
rrsrc@seZdZdd�ZdS)�PathMemoryTestscCsBt�d�}|�|j�tj|td�d�|_d|jj_	d|jj_
dS)NsHello, UTF-8 world!
zpackage exists only in memory)rrF)�io�BytesIOZ
addCleanup�closerZcreate_package�FileNotFoundErrorr�__spec__�origin�has_location)rrr
r
r�setUp s
�
zPathMemoryTests.setUpN)r
rrr#r
r
r
rrsrc@seZdZdd�ZdS)�PathZipTestsc	Cs&t�|jd��}|��W5QRXdS)Nr)rrr�unlink)rrr
r
r�test_remove_in_context_manager+sz+PathZipTests.test_remove_in_context_managerN)r
rrr&r
r
r
rr$*sr$�__main__)rZunittest�	importlibr�rrZCommonResourceTestsZTestCaserrrrZZipSetupr$r
�mainr
r
r
r�<module>s