HEX
Server: LiteSpeed
System: Linux server.nevid-deploma.com 4.18.0-553.111.1.lve.el8.x86_64 #1 SMP Fri Mar 13 13:42:17 UTC 2026 x86_64
User: smilepac (1037)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/cppython/lib/python3.8/test/__pycache__/test_eof.cpython-38.opt-2.pyc
U

.D�g��@sNddlZddlmZddlmZddlZGdd�dej�ZedkrJe�	�dS)�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)Nz/unexpected EOF while parsing (<string>, line 1)zx = 5\�\)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)NZfoorsunexpected EOF while parsingzy = 6\)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__)
r!�testrZtest.supportrr ZTestCaserr�mainrrrr�<module>s+