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_path.cpython-310.opt-1.pyc
o

�i��@s�ddlZddlZddlmZddlmZddlmZGdd�dejej�Z	Gdd	�d	�Z
Gd
d�de
ej�ZGdd
�d
e
ej�ZGdd�de
ej
ej�ZedkrVe��dSdS)�N)�	resources�)�data01)�utilc@�eZdZdd�ZdS)�CommonTestscCs2t�||��	Wd�dS1swYdS)N)r�path)�self�packager�r�:/usr/local/lib/python3.10/test/test_importlib/test_path.py�execute
s"�zCommonTests.executeN)�__name__�
__module__�__qualname__r
rrrrr	�rc@r)�	PathTestsc	Cs�t�|jd��6}|�|j�d�t|��|jddd��}|��}Wd�n1s*wY|�	d|�Wd�dS1s@wYdS)N�
utf-8.file�rzutf-8)�encodingzHello, UTF-8 world!
)
rr�dataZ
assertTrue�name�endswith�repr�open�readZassertEqual)r	r�file�textrrr�test_readings
�"�zPathTests.test_readingN)rrrrrrrrrrrc@seZdZeZdd�ZdS)�
PathDiskTestscCs4t�|jd��	}Wd�dS1swYdS�Nr)rrr�r	rrrr�test_natural_paths4zPathDiskTests.test_natural_pathN)rrrrrr"rrrrrsrc@r)�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)r	rrrr�setUp(s
�
zPathMemoryTests.setUpN)rrrr+rrrrr#'rr#c@r)�PathZipTestscCs<t�|jd��
}|��Wd�dS1swYdSr )rrr�unlinkr!rrr�test_remove_in_context_manager3s
"�z+PathZipTests.test_remove_in_context_managerN)rrrr.rrrrr,2rr,�__main__)r$Zunittest�	importlibr�rrZCommonResourceTestsZTestCaserrrr#ZZipSetupr,r�mainrrrr�<module>s
�