
    <e                     b    d dl Z  G d de j                  Zedk    r e j                     dS dS )    Nc                        e Zd Zd Zd Zd ZdS )PEP3131Testc                 @    G d d          }|                      t          |d          d           |                      t          |d          d           |                      t          |d          d           |                      t          |d	          d
           d S )Nc                       e Zd ZdZdZdZdZdS )!PEP3131Test.test_valid.<locals>.T            N)__name__
__module____qualname__   ä   μ   蟒   x󠄀     4/usr/lib/python3.11/test/test_unicode_identifiers.pyTr      s"        BBCEEEr   r   r   r   u   μr	   u   蟒r
   u   x󠄀r   )assertEqualgetattr)selfr   s     r   
test_validzPEP3131Test.test_valid   s    	 	 	 	 	 	 	 	
 	F++Q///H--q111H--q111M22A66666r   c                 N    d}|                      dt                                 d S )Nr   Unicode)assertIndir)r   r   s     r   test_non_bmp_normalizedz#PEP3131Test.test_non_bmp_normalized   s&    '($i'''''r   c                     	 ddl m} |                     d           d S # t          $ rd}|                     t          |          d           |                     |j        d           |                     |j        d           Y d }~d S d }~ww xY w)Nr   )badsyntax_3131zexpected exception didn't occuru<   invalid character '€' (U+20AC) (badsyntax_3131.py, line 2)r	   r   )testr!   failSyntaxErrorr   strlinenooffset)r   r!   errs      r   test_invalidzPEP3131Test.test_invalid   s    	9++++++ II788888  	, 	, 	,SXXLN N NSZ+++SZ+++++++++		,s    
BABBN)r   r   r   r   r   r)   r   r   r   r   r      sA        	7 	7 	7( ( (	9 	9 	9 	9 	9r   r   __main__)unittestTestCaser   r   mainr   r   r   <module>r.      sa    9 9 9 9 9(# 9 9 98 zHMOOOOO r   