HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/Python311/Lib/test/test_importlib/__pycache__/test_read.cpython-311.opt-2.pyc
�

��Vc�	��f�ddlZddlmZmZddlmZddlmZGd�dejej��Z	Gd�d	ejej��Z
Gd
�d��ZGd�d
eej��ZGd�deej
ej��ZGd�deej��Zedkrej��dSdS)�N)�
import_module�	resources�)�data01)�utilc��eZdZd�ZdS)�CommonBinaryTestsc�x�tj|���|�����dS�N)r�files�joinpath�
read_bytes��self�package�paths   �1D:\Python311\Lib\test\test_importlib\test_read.py�executezCommonBinaryTests.execute	s2����� � �)�)�$�/�/�:�:�<�<�<�<�<�N��__name__�
__module__�__qualname__r�rrr	r	s#������=�=�=�=�=rr	c��eZdZd�ZdS)�CommonTextTestsc�x�tj|���|�����dSr)rrr
�	read_textrs   rrzCommonTextTests.executes2����� � �)�)�$�/�/�9�9�;�;�;�;�;rNrrrrrr
s#������<�<�<�<�<rrc�&�eZdZd�Zd�Zd�Zd�ZdS)�	ReadTestsc��tj|j���d�����}|�|d��dS)N�binary.file�)rr�datar
r�assertEqual�r�results  r�test_read_byteszReadTests.test_read_bytessI������+�+�4�4�]�C�C�N�N�P�P�������-�-�-�-�-rc��tj|j���d�����}|�|d��dS)Nz
utf-8.filezHello, UTF-8 world!
�rrr$r
rr%r&s  r�test_read_text_default_encodingz)ReadTests.test_read_text_default_encodingsJ������+�+�4�4�\�B�B�L�L�N�N������!8�9�9�9�9�9rc��tj|j���d���d���}|�|d��dS)N�utf-16.filezutf-16��encodingzHello, UTF-16 world!
r*r&s  r�test_read_text_given_encodingz'ReadTests.test_read_text_given_encodingsQ���O�D�I�&�&�
�X�m�
$�
$�
�Y��Y�
)�
)�	�
	
����!9�:�:�:�:�:rc���tj|j��dz}|�t|jd���|�dd���}|�|d��dS)Nr-zutf-8r.�ignore)r/�errorsz*Hello, UTF-16 world!
)rrr$�assertRaises�UnicodeErrorrr%)r�targetr's   r�test_read_text_with_errorsz$ReadTests.test_read_text_with_errors#sx������+�+�m�;�����,��(8�7��K�K�K��!�!�7�8�!�D�D������
7�	
�	
�	
�	
�	
rN)rrrr(r+r0r7rrrr r sP������.�.�.�:�:�:�;�;�;�

�

�

�

�

rr c��eZdZeZdS)�
ReadDiskTestsN)rrrrr$rrrr9r90s�������D�D�Drr9c��eZdZd�Zd�ZdS)�ReadZipTestsc���td��}tj|���d�����}|�|d��dS�Nzziptestdata.subdirectoryr"r#)rrrr
rr%)r�	submoduler's   r�test_read_submodule_resourcez)ReadZipTests.test_read_submodule_resource5sU��!�"<�=�=�	����+�+�4�4�]�C�C�N�N�P�P�������-�-�-�-�-rc��tjd���d�����}|�|d��dSr=)rrr
rr%r&s  r�$test_read_submodule_resource_by_namez1ReadZipTests.test_read_submodule_resource_by_name:sI���O�6�7�7�
�X�m�
$�
$�
�Z�\�\�	�
	
�����-�-�-�-�-rN)rrrr?rArrrr;r;4s2������.�.�.�
.�.�.�.�.rr;c��eZdZd�ZdS)�ReadNamespaceTestsc� �ddlm}||_dS)Nr)�namespacedata01)�rEr$)rrEs  r�setUpzReadNamespaceTests.setUpDs��%�%�%�%�%�%�#��	�	�	rN)rrrrGrrrrCrCCs#������$�$�$�$�$rrC�__main__)�unittest�	importlibrrrFrr�CommonTests�TestCaser	rr r9�ZipSetupr;rCr�mainrrr�<module>rOs�������.�.�.�.�.�.�.�.�������������=�=�=�=�=��(�(�*;�=�=�=�
<�<�<�<�<�d�&��(9�<�<�<�

�
�
�
�
�
�
�
�<�����I�x�0����.�.�.�.�.�9�d�m�X�->�.�.�.�$�$�$�$�$��H�$5�$�$�$��z����H�M�O�O�O�O�O��r