403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.220
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python312/Lib/test/test_importlib/resources/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python312/Lib/test/test_importlib/resources/__pycache__/test_path.cpython-312.opt-1.pyc
�

���g���T�ddlZddlZddlmZddlmZddlmZGd�dejej�ZGd�d	�Z	Gd
�de	ej�Z
Gd�d
e	ej�ZGd�de	ejej�Z
edk(rej�yy)�N)�	resources�)�data01)�utilc��eZdZd�Zy)�CommonTestsc��tjtj|�j|��5	ddd�y#1swYyxYw)N)r�as_file�files�joinpath)�self�package�paths   �<C:\Python312\\Lib\test\test_importlib\resources\test_path.py�executezCommonTests.execute
s4��
�
�
�y���w�7�@�@��F�
G��H�
G�
G�s�A�AN)�__name__�
__module__�__qualname__r��rrr	s��rrc��eZdZd�Zy)�	PathTestsc��tj|j�dz}tj|�5}|j	|j
j
d�t|��|jdd��5}|j�}ddd�|jd�ddd�y#1swY�$xYw#1swYyxYw)z�
        Path should be readable.

        Test also implicitly verifies the returned object is a pathlib.Path
        instance.
        �
utf-8.file�rzutf-8)�encodingNzHello, UTF-8 world!
)rr�datar
�
assertTrue�name�endswith�repr�open�read�assertEqual)r
�targetr�file�texts     r�test_readingzPathTests.test_readings���������+�l�:��
�
�
�v�
&�$��O�O�D�I�I�.�.�|�<�d�4�j�I����3���1�T��y�y�{��2����4�d�;�'�
&�2�1��'�
&�s$�AC�B4�C�4B=	�9C�C	N)rrrr(rrrrrs��
<rrc��eZdZeZd�Zy)�
PathDiskTestsc��tj|j�dz}tj|�5}ddd�y#1swYyxYw)Nr)rrrr
�r
r%rs   r�test_natural_pathzPathDiskTests.test_natural_path#s5��������+�l�:��
�
�
�v�
&�$�
&�
&�
&�s�A�AN)rrrrrr-rrrr*r* s���D�'rr*c��eZdZd�Zy)�PathMemoryTestsc��tjd�}|j|j�t	j
|t
d���|_d|jj_	d|jj_
y)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-se���z�z�2�3������
�
�#��'�'��-�.M�N�
��	�%)��	�	���!�*/��	�	���'rN)rrrr:rrrr/r/,s��0rr/c��eZdZd�Zy)�PathZipTestsc��tj|j�dz}tj|�5}|j	�ddd�y#1swYyxYw)z�
        It is not an error if the file that was temporarily stashed on the
        file system is removed inside the `with` stanza.
        rN)rrrr
�unlinkr,s   r�test_remove_in_context_managerz+PathZipTests.test_remove_in_context_manager8s@��
������+�l�:��
�
�
�v�
&�$��K�K�M�'�
&�
&�s�A�AN)rrrr?rrrr<r<7s��rr<�__main__)r1�unittest�	importlibr�rrr�TestCaserr*r/�ZipSetupr<r�mainrrr�<module>rGs���	������$�"�"�H�$5�$5��<�<�"	'�I�x�0�0�	'�0�i��!2�!2�0��9�d�m�m�X�->�->���z���H�M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit