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_path.cpython-311.opt-1.pyc
�

��Vcd��8�ddlZddlZddlmZddlmZddlmZGd�dejej��ZGd�d	��Z	Gd
�de	ej��Z
Gd�d
e	ej��ZGd�de	ejej��Z
edkrej��dSdS)�N)�	resources�)�data01)�utilc��eZdZd�ZdS)�CommonTestsc��tjtj|���|����5	ddd��dS#1swxYwYdS)N)r�as_file�files�joinpath)�self�package�paths   �1D:\Python311\Lib\test\test_importlib\test_path.py�executezCommonTests.execute
s���
�
�y��w�7�7�@�@��F�F�
G�
G�	�	��	�	�	�	�	�	�	�	�	�	�	�	����	�	�	�	�	�	s�A	�	A
�A
N)�__name__�
__module__�__qualname__r��rrr	s#����������rrc��eZdZd�ZdS)�	PathTestsc��tj|j��dz}tj|��5}|�|j�d��t|����|�dd���5}|�	��}ddd��n#1swxYwY|�
d|��ddd��dS#1swxYwYdS)N�
utf-8.file�rzutf-8)�encodingzHello, UTF-8 world!
)rr�datar
�
assertTrue�name�endswith�repr�open�read�assertEqual)r
�targetr�file�texts     r�test_readingzPathTests.test_readingsB������+�+�l�:��
�
�v�
&�
&�	<�$��O�O�D�I�.�.�|�<�<�d�4�j�j�I�I�I����3���1�1�
#�T��y�y�{�{��
#�
#�
#�
#�
#�
#�
#�
#�
#�
#�
#����
#�
#�
#�
#����4�d�;�;�;�	<�	<�	<�	<�	<�	<�	<�	<�	<�	<�	<�	<����	<�	<�	<�	<�	<�	<s6�AC�B%�C�%B)	�)C�,B)	�-C�C�CN)rrrr(rrrrrs#������
<�
<�
<�
<�
<rrc��eZdZeZd�ZdS)�
PathDiskTestsc��tj|j��dz}tj|��5}ddd��dS#1swxYwYdS�Nr)rrrr
�r
r%rs   r�test_natural_pathzPathDiskTests.test_natural_path s�������+�+�l�:��
�
�v�
&�
&�	'�$�	'�	'�	'�	'�	'�	'�	'�	'�	'�	'�	'�	'����	'�	'�	'�	'�	'�	's�?�A�AN)rrrrrr.rrrr*r*s(�������D�'�'�'�'�'rr*c��eZdZd�ZdS)�PathMemoryTestsc��tjd��}|�|j��t	j|t
d�����|_d|jj_	d|jj_
dS)NsHello, UTF-8 world!
zpackage exists only in memory)r&rF)�io�BytesIO�
addCleanup�closer�create_package�FileNotFoundErrorr�__spec__�origin�has_location)r
r&s  r�setUpzPathMemoryTests.setUp*sp���z�2�3�3������
�#�#�#��'��-�.M�N�N�
�
�
��	�%)��	��!�*/��	��'�'�'rN)rrrr;rrrr0r0)s#������0�0�0�0�0rr0c��eZdZd�ZdS)�PathZipTestsc��tj|j��dz}tj|��5}|���ddd��dS#1swxYwYdSr,)rrrr
�unlinkr-s   r�test_remove_in_context_managerz+PathZipTests.test_remove_in_context_manager5s�������+�+�l�:��
�
�v�
&�
&�	�$��K�K�M�M�M�	�	�	�	�	�	�	�	�	�	�	�	����	�	�	�	�	�	s�A�A�AN)rrrr@rrrr=r=4s#����������rr=�__main__)r2�unittest�	importlibr�rrr�TestCaserr*r0�ZipSetupr=r�mainrrr�<module>rHsb��	�	�	�	����������������������������$�"�H�$5����<�<�<�<�<�<�<�<�	'�	'�	'�	'�	'�I�x�0�	'�	'�	'�0�0�0�0�0�i��!2�0�0�0������9�d�m�X�->�����z����H�M�O�O�O�O�O��r