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_open.cpython-310.pyc
o

�i;	�@s�ddlZddlmZddlmZddlmZGdd�dejej�ZGdd	�d	ejej�Z	Gd
d�d�Z
Gdd
�d
e
ej�ZGdd�de
ej�ZGdd�de
ej
ej�Zedkr]e��dSdS)�N)�	resources�)�data01)�utilc@�eZdZdd�ZdS)�CommonBinaryTestscC�2t�||��	Wd�dS1swYdS�N)r�open_binary��self�package�path�r�:/usr/local/lib/python3.10/test/test_importlib/test_open.py�execute	�"�zCommonBinaryTests.executeN��__name__�
__module__�__qualname__rrrrrr�rc@r)�CommonTextTestscCrr	)r�	open_textrrrrrrzCommonTextTests.executeNrrrrrrrrc@s<eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
S)�	OpenTestscC�Ht�|jd��}|��}|�|d�Wd�dS1swYdS)Nzbinary.files)rr
�data�read�assertEqual�r�fp�resultrrr�test_open_binary�"�zOpenTests.test_open_binarycCr)Nz
utf-8.filezHello, UTF-8 world!
�rrrrrrrrr�test_open_text_default_encodingr#z)OpenTests.test_open_text_default_encodingcCsJt�|jddd��}|��}Wd�n1swY|�|d�dS)N�utf-16.filezutf-16�strictzHello, UTF-16 world!
r$rrrr�test_open_text_given_encodings
�z'OpenTests.test_open_text_given_encodingcCs�t�|jddd��}|�t|j�Wd�n1swYt�|jddd��}|��}Wd�n1s8wY|�|d�dS)Nr&zutf-8r'�ignorez*Hello, UTF-16 world!
)rrr�assertRaises�UnicodeErrorrrrrrr�test_open_text_with_errors$s�
��z$OpenTests.test_open_text_with_errorscC�|�ttj|jd�dS�Nzdoes-not-exist)r*�FileNotFoundErrorrr
r�rrrr�"test_open_binary_FileNotFoundError1��z,OpenTests.test_open_binary_FileNotFoundErrorcCr-r.)r*r/rrrr0rrr� test_open_text_FileNotFoundError6r2z*OpenTests.test_open_text_FileNotFoundErrorN)	rrrr"r%r(r,r1r3rrrrrs
rc@r)�
OpenDiskTestscCs
t|_dSr	)rrr0rrr�setUp=s
zOpenDiskTests.setUpN�rrrr5rrrrr4<rr4c@r)�OpenDiskNamespaceTestscCsddlm}||_dS)Nr)�namespacedata01)�r8r)rr8rrrr5Bs
zOpenDiskNamespaceTests.setUpNr6rrrrr7Arr7c@seZdZdS)�OpenZipTestsN)rrrrrrrr:Hsr:�__main__)Zunittest�	importlibrr9rrZCommonResourceTestsZTestCaserrrr4r7ZZipSetupr:r�mainrrrr�<module>s(�