Your IP : 216.73.216.213


Current Path : /opt/alt/python310/lib64/python3.10/test/test_importlib/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/test/test_importlib/__pycache__/test_files.cpython-310.pyc

o

0�i��@s�ddlZddlZddlmZddlmZddlmZddlmZGdd�d�Z	Gd	d
�d
e	ej
�ZGdd�de	ejej
�Z
ed
krGe��dSdS)�N)�	resources)�Traversable�)�data01)�utilc@s6eZdZdd�Zdd�Ze�eed�d�dd��Z	d	S)
�
FilesTestscCs*t�|j�}|�d���}|dksJ�dS)N�
utf-8.filesHello, UTF-8 world!
)r�files�data�joinpathZ
read_bytes��selfr	Zactual�r�E/opt/alt/python310/lib64/python3.10/test/test_importlib/test_files.py�test_read_bytesszFilesTests.test_read_bytescCs.t�|j�}|�d�jdd�}|dksJ�dS)Nrzutf-8)�encodingzHello, UTF-8 world!
)rr	r
rZ	read_textrrrr�test_read_textszFilesTests.test_read_textZruntime_checkablez4Only suitable when typing supports runtime_checkablecCstt�|j�t�sJ�dS�N)�
isinstancerr	r
r�r
rrr�test_traversableszFilesTests.test_traversableN)
�__name__�
__module__�__qualname__rr�unittestZ
skipUnless�hasattr�typingrrrrrr
s�rc@seZdZdd�ZdS)�
OpenDiskTestscCs
t|_dSr)rr
rrrr�setUps
zOpenDiskTests.setUpN)rrrrrrrrrsrc@seZdZdS)�OpenZipTestsN)rrrrrrrr"sr�__main__)rr�	importlibrZ
importlib.abcr�rrrZTestCaserZZipSetuprr�mainrrrr�<module>s�