Server : LiteSpeed
System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : nandedex ( 1060)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /opt/cppython/lib/python3.8/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : //opt/cppython/lib/python3.8/test/__pycache__/test_eof.cpython-38.opt-1.pyc
U

>��g��@sRdZddlZddlmZddlmZddlZGdd�dej�Ze	dkrNe�
�dS)z/test script for a few new invalid token catches�N)�support)�
script_helperc@s<eZdZdd�Zdd�Zdd�Ze�ej	d�dd	��Z
d
S)�EOFTestCasec
CsNd}ztd�Wn2tk
rB}z|�t|�|�W5d}~XYnXtj�dS)Nz4EOL while scanning string literal (<string>, line 1)z'this is a test            ��eval�SyntaxError�assertEqual�strrZ
TestFailed��self�expect�msg�r�,/opt/cppython/lib/python3.8/test/test_eof.py�	test_EOFC	s"zEOFTestCase.test_EOFCc
CsNd}ztd�Wn2tk
rB}z|�t|�|�W5d}~XYnXtj�dS)NzBEOF while scanning triple-quoted string literal (<string>, line 1)z'''this is a testrr
rrr�	test_EOFSs"zEOFTestCase.test_EOFSc	Cshd}|�t��}td�W5QRX|�t|j�|�|�t��}td�W5QRX|�t|j�|�dS)z=A continuation at the end of input must be an error; bpo2180.z/unexpected EOF while parsing (<string>, line 1)zx = 5\�\N)ZassertRaisesr�execrr	�	exception)rr�excinforrr�test_line_continuation_EOFsz&EOFTestCase.test_line_continuation_EOFzsys.executable requiredc	Cslt���Z}t�|dd�}t�|�\}}}|�d|�t�|dd�}t�|�\}}}|�d|�W5QRXdS)z9Ensure tok_nextc() does not add too many ending newlines.Zfoorsunexpected EOF while parsingzy = 6\N)r�temp_dirrZmake_scriptZassert_python_failureZassertIn)rr�	file_name�rc�out�errrrr�,test_line_continuation_EOF_from_file_bpo2180's
z8EOFTestCase.test_line_continuation_EOF_from_file_bpo2180N)�__name__�
__module__�__qualname__rrr�unittestZskipIf�sys�
executablerrrrrrs



r�__main__)�__doc__r!�testrZtest.supportrr ZTestCaserr�mainrrrr�<module>s+

F1le Man4ger