B
    u9a#  ã               @   s>   d Z ddlZddlmZ G dd„ dejƒZedkr:e ¡  dS )z/test script for a few new invalid token catchesé    N)Úsupportc               @   s   e Zd Zdd„ Zdd„ ZdS )ÚEOFTestCasec          
   C   sN   d}yt dƒ W n2 tk
rB } z|  t|ƒ|¡ W d d }~X Y nX tj‚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/lib/python3.7/test_eof.pyÚ	test_EOFC   s    
"zEOFTestCase.test_EOFCc          
   C   sN   d}yt dƒ W n2 tk
rB } z|  t|ƒ|¡ W d d }~X Y nX tj‚d S )NzBEOF while scanning triple-quoted string literal (<string>, line 1)z'''this is a test)r   r   r   r   r   r   )r	   r
   r   r   r   r   Ú	test_EOFS   s    "zEOFTestCase.test_EOFSN)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   r      s   
r   Ú__main__)Ú__doc__ZunittestZtestr   ZTestCaser   r   Úmainr   r   r   r   Ú<module>   s
   