Current File : //usr/local/apps/python3/lib/python3.11/test/__pycache__/test_generator_stop.cpython-311.pyc
�

�Ke���n�ddlmZddlZGd�dej��Zedkrej��dSdS)�)�generator_stopNc��eZdZd�Zd�ZdS)�
TestPEP479c���d���fd�}|�td��5t|����ddd��dS#1swxYwYdS)Nc��t��N��
StopIteration���B/usr/local/apps/python3/lib/python3.11/test/test_generator_stop.py�fz1TestPEP479.test_stopiteration_wrapping.<locals>.f����rc3�$�K����V�dSrr�rs�r
�gz1TestPEP479.test_stopiteration_wrapping.<locals>.g
�������!�#�#�I�I�I�I�Irzgenerator raised StopIteration)�assertRaisesRegex�RuntimeError�next)�selfrrs  @r
�test_stopiteration_wrappingz&TestPEP479.test_stopiteration_wrappings����	 �	 �	 �	�	�	�	�	�
�
#�
#�L�$D�F�F�	�	������I�I�I�	�	�	�	�	�	�	�	�	�	�	�	����	�	�	�	�	�	s�A
�
A�Ac���d���fd�}	t|����|�d��dS#t$r}|�t	|j��t��|�t	|j��t��|�|j	��Yd}~dSd}~wwxYw)Nc��t�rr	rrr
rz9TestPEP479.test_stopiteration_wrapping_context.<locals>.frrc3�$�K����V�dSrrrs�r
rz9TestPEP479.test_stopiteration_wrapping_context.<locals>.grrzE__cause__, __context__, or __suppress_context__ were not properly set)
r�failr�assertIs�type�	__cause__r
�__context__�
assertTrue�__suppress_context__)rr�excrs   @r
�#test_stopiteration_wrapping_contextz.TestPEP479.test_stopiteration_wrapping_contexts����	 �	 �	 �	�	�	�	�	�	/������I�I�I�
�I�I�.�
/�
/�
/�
/�
/���	6�	6�	6��M�M�$�s�}�-�-�}�=�=�=��M�M�$�s��/�/��?�?�?��O�O�C�4�5�5�5�5�5�5�5�5�5�����	6���s�9�
C�A4B=�=CN)�__name__�
__module__�__qualname__rr$rrr
rrs2���������/�/�/�/�/rr�__main__)�
__future__r�unittest�TestCaserr%�mainrrr
�<module>r-ss��%�%�%�%�%�%�����/�/�/�/�/��"�/�/�/�6�z����H�M�O�O�O�O�O��r