Uname:Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64

403WebShell
403Webshell
Server IP : 3.111.61.48  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.2.31
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3.10/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.10/test/__pycache__/test_eof.cpython-310.pyc
o

�9j�@sbdZddlZddlmZddlmZddlmZddlZGdd�dej�Z	e
dkr/e��dSdS)	z/test script for a few new invalid token catches�N)�support)�	os_helper)�
script_helperc@sLeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Ze�	e
jd�dd
��ZdS)�EOFTestCasecCsjd}dD].}zt|�d��Wtj�ty2}z|�t|�|�|�|jd�WYd}~qd}~wwdS)NzCunterminated string literal (detected at line 1) (<string>, line 1))�'�"zthis is a test                ���eval�SyntaxError�assertEqual�str�offsetr�
TestFailed)�self�expect�quote�msg�r�$/usr/lib/python3.10/test/test_eof.py�test_EOF_single_quote
s����z!EOFTestCase.test_EOF_single_quotec
CsZd}ztd�Wtj�ty,}z|�t|�|�|�|jd�WYd}~dSd}~ww)NzQunterminated triple-quoted string literal (detected at line 1) (<string>, line 1)z'''this is a testrr	�rrrrrr�	test_EOFSs
���zEOFTestCase.test_EOFScCsZd}t���}t�|dd�}t�|�\}}}Wd�n1s wY|�d|�dS)Nz(<string>, line 1)�fooz'''this is 
a 
tests>unterminated triple-quoted string literal (detected at line 3)�r�temp_dirr�make_script�assert_python_failure�assertIn)rrr�	file_name�rc�out�errrrr�test_EOFS_with_file s
�zEOFTestCase.test_EOFS_with_filec
CsTd}ztddddd�Wtj�ty)}z|�t|�|�WYd}~dSd}~ww)N�/unexpected EOF while parsing (<string>, line 1)z"\xhh" \z<string>�execT)�dont_inherit)�compilerrr
rrrrrr�test_eof_with_line_continuation's���z+EOFTestCase.test_eof_with_line_continuationcCs�d}|�t��}td�Wd�n1swY|�t|j�|�|�t��}td�Wd�n1s8wY|�t|j�|�dS)z=A continuation at the end of input must be an error; bpo2180.r$zx = 5\N�\)�assertRaisesrr%rr
�	exception)rr�excinforrr�test_line_continuation_EOF0s
�
�z&EOFTestCase.test_line_continuation_EOFzsys.executable requiredcCs�t���K}t�|dd�}t�|�\}}}|�d|�|�d|�|�d|�t�|dd�}t�|�\}}}|�d|�|�d|�|�d|�Wd�dS1sRwYdS)	z9Ensure tok_nextc() does not add too many ending newlines.rr)sunexpected EOF while parsingsline 1�\zy = 6\sy = 6\Nr)rrrr r!r"rrr�,test_line_continuation_EOF_from_file_bpo2180:s
"�z8EOFTestCase.test_line_continuation_EOF_from_file_bpo2180N)
�__name__�
__module__�__qualname__rrr#r(r-�unittest�skipIf�sys�
executabler/rrrrr	s
	
r�__main__)�__doc__r5�testr�test.supportrrr3�TestCaserr0�mainrrrr�<module>sA�

Youez - 2016 - github.com/yon3zu
LinuXploit