Your IP : 216.73.216.196


Current Path : /opt/alt/python312/lib64/python3.12/test/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/test/__pycache__/test_flufl.cpython-312.opt-1.pyc

�

�#�j:��l�ddlZddlZGd�dej�Zedk(rej
�yy)�Nc�$�eZdZd�Zd�Zd�Zd�Zy)�
FLUFLTestsc��d}t|jd�ddtj�|j	t
�5}t|jd�ddtj�ddd�|j
tj�d�|jd|jj�|j|jjd�|j|jjd	�|j|jjd
�y#1swY��xYw)Nz-from __future__ import barry_as_FLUFL
2 {0} 3�<>�<BDFL test>�exec�!=�<FLUFL test>�,with Barry as BDFL, use '<>' instead of '!='�2 != 3��)�compile�format�
__future__�CO_FUTURE_BARRY_AS_BDFL�assertRaises�SyntaxError�assertRegex�str�	exception�assertIn�text�assertEqual�filename�lineno�offset��self�code�cms   �6/opt/alt/python312/lib64/python3.12/test/test_flufl.py�test_barry_as_bdflzFLUFLTests.test_barry_as_bdfls���?������D�!�=�&��2�2�	4�
�
�
�{�
+�r��D�K�K��%�~�v��6�6�
8�,�	
����R�\�\�*�G�	I��
�
�h���� 1� 1�2�������.�.��?�������,�,�a�0�	
������,�,�a�0�,�
+�s�,D5�5D>c�F�d}t|jd�dd�|jt�5}t|jd�dd�ddd�|j	tj�d�|jd|jj�|j|jjd�|j|jjd	�|j|jjd
�y#1swY��xYw)Nz2 {0} 3r	rrrr
zinvalid syntax�2 <> 3�r)
rrrrrrrrrrrrrrs   r"�test_guido_as_bdflzFLUFLTests.test_guido_as_bdfls���������D�!�=�&�9�
�
�
�{�
+�r��D�K�K��%�~�v�>�,�����R�\�\�*�,<�=��
�
�h���� 1� 1�2�������.�.��?�������,�,�a�0�	
������,�,�a�0�,�
+�s�D�D c�^�d}t|jd�dd�|jt�5}t|jd�dd�ddd�|j	tj�d�|jd|jj�|j|jjd�|j|jjd	�|j|jjt|�d
z
�y#1swY��xYw)Nz-from __future__ import barry_as_FLUFL;2 {0} 3rrrr	r
rrr&��rrrrrrrrrrrrr�lenrs   r"�1test_barry_as_bdfl_look_ma_with_no_compiler_flagsz<FLUFLTests.test_barry_as_bdfl_look_ma_with_no_compiler_flags%s���?������D�!�=�&�9�
�
�
�{�
+�r��D�K�K��%�~�v�>�,�����R�\�\�*�,Z�[��
�
�h���� 1� 1�2�������.�.��?�������,�,�a�0�������,�,�c�$�i�!�m�<�
,�
+���D#�#D,c�^�d}t|jd�dd�|jt�5}t|jd�dd�ddd�|j	tj�d�|jd|jj�|j|jjd�|j|jjd�|j|jjt|�d	z
�y#1swY��xYw)
Nz.from .__future__ import barry_as_FLUFL;2 {0} 3r	r
rrrr%r&r)r*rs   r"�"test_barry_as_bdfl_relative_importz-FLUFLTests.test_barry_as_bdfl_relative_import2s���?������D�!�>�6�:�
�
�
�{�
+�r��D�K�K��%�}�f�=�,�����R�\�\�*�M�:��
�
�h���� 1� 1�2�������.�.�
�>�������,�,�a�0�������,�,�c�$�i�!�m�<�
,�
+�r-N)�__name__�
__module__�__qualname__r#r'r,r/��r"rrs��1�"1�=�	=r4r�__main__)r�unittest�TestCaserr0�mainr3r4r"�<module>r9s8����6=��"�"�6=�v�z���H�M�M�O�r4