HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.7/test/__pycache__/test_generator_stop.cpython-37.pyc
B

��g��@s:ddlmZddlZGdd�dej�Zedkr6e��dS)�)�generator_stopNc@seZdZdd�Zdd�ZdS)�
TestPEP479c	s:dd���fdd�}|�td��t|��WdQRXdS)NcSst�dS)N)�
StopIteration�rr�4/usr/local/lib/python3.7/test/test_generator_stop.py�fsz1TestPEP479.test_stopiteration_wrapping.<locals>.fc3s��VdS)Nrr)rrr�g
sz1TestPEP479.test_stopiteration_wrapping.<locals>.gzgenerator raised StopIteration)ZassertRaisesRegex�RuntimeError�next)�selfrr)rr�test_stopiteration_wrappings
z&TestPEP479.test_stopiteration_wrappingc
s�dd���fdd�}yt|��WnRtk
rt}z4|�t|j�t�|�t|j�t�|�|j�Wdd}~XYnX|�	d�dS)NcSst�dS)N)rrrrrrsz9TestPEP479.test_stopiteration_wrapping_context.<locals>.fc3s��VdS)Nrr)rrrrsz9TestPEP479.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�excr)rr�#test_stopiteration_wrapping_contextsz.TestPEP479.test_stopiteration_wrapping_contextN)�__name__�
__module__�__qualname__rrrrrrrs	r�__main__)Z
__future__rZunittestZTestCaserr�mainrrrr�<module>s