Your IP : 216.73.216.213


Current Path : /opt/alt/python38/lib64/python3.8/test/__pycache__/
Upload File :
Current File : //opt/alt/python38/lib64/python3.8/test/__pycache__/test_eof.cpython-38.opt-2.pyc

U

i�f��@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�2/opt/alt/python38/lib64/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	Z	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_nameZrc�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__)
rZtestrZtest.supportrrZTestCaserr�mainrrrr�<module>s+