Sindbad~EG File Manager

Current Path : /proc/2568807/root/usr/local/lib/python3.12/test/__pycache__/
Upload File :
Current File : //proc/2568807/root/usr/local/lib/python3.12/test/__pycache__/test_eof.cpython-312.opt-2.pyc

�

'Μg����	ddlZddlmZddlmZddlmZddlmZddlmZddl	Z	Gd�de	j�Zed	k(re	j�yy)
�N)�BOM_UTF8)�support)�	os_helper)�
script_helper)�warnings_helperc��eZdZd�Zd�Zd�Zeje��d��Z	d�Z
eje
jd�d��Zy	)
�EOFTestCasec��d}dD]y}|jt�5}t|�d��ddd�|jt	j
�|�|j|j
jd��{y#1swY�WxYw)NzCunterminated string literal (detected at line 1) (<string>, line 1))�'�"zthis is a test                �)�assertRaises�SyntaxError�eval�assertEqual�str�	exception�offset)�self�expect�quote�cms    �*/usr/local/lib/python3.12/test/test_eof.py�test_EOF_single_quotez!EOFTestCase.test_EOF_single_quotesx��V�� �E��"�"�;�/�2��%��!���0�
���S����.��7����R�\�\�0�0�!�4�!�/�/�s�B�B	c��d}|jt�5}td�ddd�|jt	j
�|�|j|j
jd�|j|j
jd�|jt�5}tdj��ddd�|jt	|j
�|�|j|j
jd�|j|j
jd�|jt�5}ttdj�z�ddd�|jt	|j
�|�|j|j
jd�|j|j
jd�|jt�5}tdjd��ddd�|jt	|j
�d�|j|j
jd�|j|j
jd�y#1swY��|xYw#1swY���xYw#1swY��?xYw#1swY��xYw)NzQunterminated triple-quoted string literal (detected at line 3) (<string>, line 1)�ä = '''thîs is 
a 
testuä = '''thîs is ��*# coding: latin1
ä = '''thîs is 
a 
test�latin1zQunterminated triple-quoted string literal (detected at line 4) (<string>, line 2))
rrrrrr�textr�encoder�rrrs   r�	test_EOFSzEOFTestCase.test_EOFSs��e��
�
�
�{�
+�r��2�3�,�����R�\�\�*�F�3�������*�*�,?�@�������,�,�a�0�
�
�
�{�
+�r��2�9�9�;�<�,�����R�\�\�*�F�3�������*�*�,?�@�������,�,�a�0�
�
�
�{�
+�r���=�D�D�F�F�G�,�����R�\�\�*�F�3�������*�*�,?�@�������,�,�a�0�
�
�
�{�
+�r��D�K�K�H�U�V�,�����R�\�\�*�,�	A�������*�*�,?�@�������,�,�a�0�-,�
+��,�
+��,�
+��,�
+�s/�J�2J+�!J8�	K�J(�+J5�8K�Kc��d}tj�5}tj|dd�}tjdd|�\}}}|j�j
�}|j|ddgd��tj|ddj��}tjdd|�\}}}|j�j
�}|j|ddgd��tj|dtdj�z�}tjdd|�\}}}|j�j
�}|j|ddgd��tj|ddjd	��}tjdd|�\}}}|j�j
�}|j|ddgd
��ddd�y#1swYyxYw)Nz(<string>, line 1)�foor�-X�utf8���)�    ä = '''thîs is �	        ^zKSyntaxError: unterminated triple-quoted string literal (detected at line 3)rr)r)r*zKSyntaxError: unterminated triple-quoted string literal (detected at line 4)�
r�temp_dirr�make_script�assert_python_failure�decode�
splitlinesrr!r)rrr,�	file_name�rc�out�errs       r�test_EOFS_with_filezEOFTestCase.test_EOFS_with_file/s���&��
�
�
�
!�X�%�1�1�(�E�2S�U�I�(�>�>�t�V�Y�W�L�B��S��*�*�,�)�)�+�C����S���X�(_�
`�
&�1�1�(�E�2S�2Z�2Z�2\�^�I�(�>�>�t�V�Y�W�L�B��S��*�*�,�)�)�+�C����S���X�(_�
`�
&�1�1�(�E�2:�=^�=e�=e�=g�2g�i�I�(�>�>�t�V�Y�W�L�B��S��*�*�,�)�)�+�C����S���X�(_�
`�
&�1�1�(�E�2e�2l�2l�mu�2v�x�I�(�>�>�t�V�Y�W�L�B��S��*�*�,�)�)�+�C����S���X�(_�
`�A"�
!�
!�s�GG/�/G8)�categoryc��d}|jt�5}tddd�ddd�|jt	j
�|�y#1swY�/xYw)N�/unexpected EOF while parsing (<string>, line 1)z"\Xhh" \z<string>�exec)rr�compilerrrr"s   r�test_eof_with_line_continuationz+EOFTestCase.test_eof_with_line_continuationVsJ��B��
�
�
�{�
+�r��L�*�f�5�,�����R�\�\�*�F�3�,�
+�s�A�Ac�X�	d}|jt�5}td�ddd�|jt	j
�|�|j|j
jd�|j|j
jd�|jt�5}tdj��ddd�|jt	|j
�|�|j|j
jd�|j|j
jd�|jt�5}tdjd��ddd�|jt	|j
�d�|j|j
jd�|j|j
jd�|jt�5}ttdj�z�ddd�|jt	|j
�|�|j|j
jd�|j|j
jd�|jt�5}td�ddd�|jt	|j
�|�y#1swY���xYw#1swY��/xYw#1swY���xYw#1swY��xYw#1swY�bxYw)	Nr8uä = 5\uä = 5\
�u# coding:latin1
ä = 5\rz/unexpected EOF while parsing (<string>, line 2)�\)
rrr9rrrr rr!rr"s   r�test_line_continuation_EOFz&EOFTestCase.test_line_continuation_EOF]s;��K�B��
�
�
�{�
+�r����,�����R�\�\�*�F�3�������*�*�L�9�������,�,�a�0�
�
�
�{�
+�r���"�"�$�%�,�����R�\�\�*�F�3�������*�*�L�9�������,�,�a�0�
�
�
�{�
+�r��,�3�3�H�=�>�,�����R�\�\�*�J�	L�������*�*�L�9�������,�,�a�0�
�
�
�{�
+�r���J�-�-�/�/�0�,�����R�\�\�*�F�3�������*�*�L�9�������,�,�a�0�
�
�
�{�
+�r���J�,�����R�\�\�*�F�3�7,�
+��,�
+��,�
+��,�
+��,�
+�s;�K-�3K:�L�!L�3L �-K7�:L�L�L� L)zsys.executable requiredc��	tj�5}tj|dd�}tjdd|�\}}}|j�j
�}|j|ddddg�|j|dd	dd
|�tj|dd�}tjdd|�\}}}|j�j
�}|j|ddgd��|j|d
d	dd
|�tj|ddjd��}tjdd|�\}}}|j�j
�}|j|ddgd��|j|d
d	dd|�tj|dtdj�z�}tjdd|�\}}}|j�j
�}|j|ddgd��|j|d
d	dd
|�ddd�y#1swYyxYw)Nr%r>r&r'���z    \�)SyntaxError: unexpected EOF while parsingr(i����z, line 1uä = 6\)u    ä = 6\�          ^rB���u# coding:latin1
ä = 7\r)u    ä = 7\rCrBz, line 2uä = 8\)u    ä = 8\rCrBr+)rr,r1r2r3r4s      r�,test_line_continuation_EOF_from_file_bpo2180z8EOFTestCase.test_line_continuation_EOF_from_file_bpo2180}s6��G�
�
�
�
!�X�%�1�1�(�E�4�H�I�(�>�>�t�V�Y�W�L�B��S��*�*�,�)�)�+�C����S���X��;�(=�
>�
���S��W�R�S�\�:�s�;�%�1�1�(�E�:�N�I�(�>�>�t�V�Y�W�L�B��S��*�*�,�)�)�+�C����S���X�(=�
>�
���S��W�R�S�\�:�s�;�%�1�1�(�E�3=�=C�V�H�=M�O�I�)�>�>�t�V�Y�W�L�B��S��*�*�,�)�)�+�C����S���X�(=�
>�
���S��W�R�S�\�:�s�;�%�1�1�(�E�2:�Z�=N�=N�=P�2P�R�I�(�>�>�t�V�Y�W�L�B��S��*�*�,�)�)�+�C����S���X�(=�
>�
���S��W�R�S�\�:�s�;�K"�
!�
!�s�H%I�I
N)�__name__�
__module__�__qualname__rr#r5r�ignore_warnings�
SyntaxWarningr;r?�unittest�skipIf�sys�
executablerE��rr	r	sd��5�1�4%`�N%�_�$�$�m�<�4�=�4�4�@�X�_�_����'�)B�C�'<�D�'<rPr	�__main__)rM�codecsr�testr�test.supportrrrrK�TestCaser	rF�mainrOrPr�<module>rWsL��5�
���"�&�(��Z<�(�#�#�Z<�z�z���H�M�M�O�rP

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists