B
    u9a{  ã               @   s.   d dl Z G dd„ de jƒZedkr*e  ¡  dS )é    Nc               @   s$   e Zd Zdd„ Zdd„ Zdd„ ZdS )ÚPEP3131Testc             C   sZ   G dd„ dƒ}|   t|dƒd¡ |   t|dƒd¡ |   t|dƒd¡ |   t|d	ƒd
¡ d S )Nc               @   s   e Zd ZdZdZdZdZdS )z!PEP3131Test.test_valid.<locals>.Té   é   é   é   N)Ú__name__Ú
__module__Ú__qualname__ô   Ã¤t   Î¼t   èŸ’t   xó „€© r   r   ú./usr/lib/python3.7/test_unicode_identifiers.pyÚT   s   r   r
   r   u   Î¼r   u   èŸ’r   u   xó „€r   )ÚassertEqualÚgetattr)Úselfr   r   r   r   Ú
test_valid   s
    zPEP3131Test.test_validc             C   s   d}|   dtƒ ¡ d S )Nr   ÚUnicode)ZassertInÚdir)r   r   r   r   r   Útest_non_bmp_normalized   s    z#PEP3131Test.test_non_bmp_normalizedc          
   C   sR   yddl m} W n2 tk
rB } z|  t|ƒd¡ W d d }~X Y nX |  d¡ d S )Nr   )Úbadsyntax_3131z;invalid character in identifier (badsyntax_3131.py, line 2)zexpected exception didn't occur)Ztestr   ÚSyntaxErrorr   ÚstrZfail)r   r   Úsr   r   r   Útest_invalid   s    
zPEP3131Test.test_invalidN)r   r   r	   r   r   r   r   r   r   r   r      s   r   Ú__main__)ZunittestZTestCaser   r   Úmainr   r   r   r   Ú<module>   s   