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.7/test/test_importlib/__pycache__/test_read.cpython-37.opt-1.pyc
B

��g��@s�ddlZddlmZmZddlmZddlmZGdd�dejej�Z	Gdd	�d	ejej�Z
Gd
d�d�ZGdd
�d
eej�ZGdd�deej
ej�Zedkr�e��dS)�N)�
import_module�	resources�)�data01)�utilc@seZdZdd�ZdS)�CommonBinaryTestscCst�||�dS)N)r�read_binary)�self�package�path�r�9/usr/local/lib/python3.7/test/test_importlib/test_read.py�execute	szCommonBinaryTests.executeN)�__name__�
__module__�__qualname__rrrrr
rsrc@seZdZdd�ZdS)�CommonTextTestscCst�||�dS)N)r�	read_text)r	r
rrrr
rszCommonTextTests.executeN)rrrrrrrr
r
src@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�	ReadTestscCst�|jd�}|�|d�dS)Nzbinary.files)rr�data�assertEqual)r	�resultrrr
�test_read_binaryszReadTests.test_read_binarycCst�|jd�}|�|d�dS)Nz
utf-8.filezHello, UTF-8 world!
)rrrr)r	rrrr
�test_read_text_default_encodingsz)ReadTests.test_read_text_default_encodingcCs"tj|jddd�}|�|d�dS)Nzutf-16.filezutf-16)�encodingzHello, UTF-16 world!
)rrrr)r	rrrr
�test_read_text_given_encodingsz'ReadTests.test_read_text_given_encodingcCs6|�ttj|jd�tj|jddd�}|�|d�dS)Nzutf-16.file�ignore)�errorsz*Hello, UTF-16 world!
)ZassertRaises�UnicodeErrorrrrr)r	rrrr
�test_read_text_with_errors sz$ReadTests.test_read_text_with_errorsN)rrrrrrrrrrr
rsrc@seZdZeZdS)�
ReadDiskTestsN)rrrrrrrrr
r ,sr c@seZdZdd�Zdd�ZdS)�ReadZipTestscCs$td�}t�|d�}|�|d�dS)Nzziptestdata.subdirectoryzbinary.files)rrrr)r	Z	submodulerrrr
�test_read_submodule_resource1sz)ReadZipTests.test_read_submodule_resourcecCst�dd�}|�|d�dS)Nzziptestdata.subdirectoryzbinary.files)rrr)r	rrrr
�$test_read_submodule_resource_by_name7sz1ReadZipTests.test_read_submodule_resource_by_nameN)rrrr"r#rrrr
r!0sr!�__main__)Zunittest�	importlibrr�rrZCommonResourceTestsZTestCaserrrr ZZipSetupr!r�mainrrrr
�<module>s