Your IP : 216.73.216.213


Current Path : /opt/alt/python39/lib64/python3.9/test/__pycache__/
Upload File :
Current File : //opt/alt/python39/lib64/python3.9/test/__pycache__/test_generator_stop.cpython-39.opt-2.pyc

a

XC?h��@s:ddlmZddlZGdd�dej�Zedkr6e��dS)�)�generator_stopNc@seZdZdd�Zdd�ZdS)�
TestPEP479csNdd���fdd�}|�td��t|��Wd�n1s@0YdS)NcSst�dS�N��
StopIteration�rr�=/opt/alt/python39/lib64/python3.9/test/test_generator_stop.py�fsz1TestPEP479.test_stopiteration_wrapping.<locals>.fc3s��VdSrrr�r	rr�g
sz1TestPEP479.test_stopiteration_wrapping.<locals>.gzgenerator raised StopIteration)ZassertRaisesRegex�RuntimeError�next)�selfrrr
r�test_stopiteration_wrappings�z&TestPEP479.test_stopiteration_wrappingc
s�dd���fdd�}zt|��WnTtyv}z<|�t|j�t�|�t|j�t�|�|j�WYd}~nd}~00|�	d�dS)NcSst�dSrrrrrrr	sz9TestPEP479.test_stopiteration_wrapping_context.<locals>.fc3s��VdSrrrr
rrrsz9TestPEP479.test_stopiteration_wrapping_context.<locals>.gzE__cause__, __context__, or __suppress_context__ were not properly set)
r
rZassertIs�type�	__cause__r�__context__Z
assertTrue�__suppress_context__Zfail)rr�excrr
r�#test_stopiteration_wrapping_contexts"z.TestPEP479.test_stopiteration_wrapping_contextN)�__name__�
__module__�__qualname__rrrrrrrs	r�__main__)Z
__future__rZunittestZTestCaserr�mainrrrr�<module>s