HEX
Server: LiteSpeed
System: Linux server.nevid-deploma.com 4.18.0-553.111.1.lve.el8.x86_64 #1 SMP Fri Mar 13 13:42:17 UTC 2026 x86_64
User: smilepac (1037)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/cppython/lib/python3.8/test/__pycache__/test_generator_stop.cpython-38.opt-2.pyc
U

.D�g��@s:ddlmZddlZGdd�dej�Zedkr6e��dS)�)�generator_stopNc@seZdZdd�Zdd�ZdS)�
TestPEP479c	s:dd���fdd�}|�td��t|��W5QRXdS)NcSst�dS�N��
StopIteration�rr�7/opt/cppython/lib/python3.8/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|��WnRtk
rt}z4|�t|j�t�|�t|j�t�|�|j�W5d}~XYnX|�	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