Sindbad~EG File Manager
a
��g� � @ sN d dl Z d dlmZ d dlmZ d dlZG dd� dej�ZedkrJe� � dS )� N)�support)�
script_helperc @ sD e Zd Zdd� Zdd� Zdd� Zdd� Ze�e j
d �d
d� �ZdS )
�EOFTestCasec
C sP d}zt d� W n4 tyD } z| �t|�|� W Y d }~nd }~0 0 tj�d S )Nz4EOL while scanning string literal (<string>, line 1)z'this is a test ��eval�SyntaxError�assertEqual�strr �
TestFailed��self�expect�msg� r �)/usr/local/lib/python3.9/test/test_eof.py� test_EOFC s &zEOFTestCase.test_EOFCc
C sP d}zt d� W n4 tyD } z| �t|�|� W Y d }~nd }~0 0 tj�d S )NzBEOF while scanning triple-quoted string literal (<string>, line 1)z'''this is a testr r r r r � test_EOFS s &zEOFTestCase.test_EOFSc
C sX d}zt ddddd� W n4 tyL } z| �t|�|� W Y d }~nd }~0 0 tj�d S )N�/unexpected EOF while parsing (<string>, line 1)z"\xhh" \z<string>�execT)�dont_inherit)�compiler r r r r
r r r r �test_eof_with_line_continuation s &z+EOFTestCase.test_eof_with_line_continuationc C s� d}| � t��}td� W d � n1 s,0 Y | �t|j�|� | � t��}td� W d � n1 sp0 Y | �t|j�|� d S )Nr zx = 5\�\)ZassertRaisesr r r r � exception)r r
�excinfor r r �test_line_continuation_EOF&