Server : LiteSpeed
System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : nandedex ( 1060)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /opt/cppython/lib/python3.8/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : //opt/cppython/lib/python3.8/test/__pycache__/test_generator_stop.cpython-38.pyc
U

>��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

F1le Man4ger