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.10/test/__pycache__/test_generator_stop.cpython-310.opt-1.pyc
o

�i��@s>ddlmZddlZGdd�dej�Zedkre��dSdS)�)�generator_stopNc@seZdZdd�Zdd�ZdS)�
TestPEP479csPdd���fdd�}|�td��t|��Wd�dS1s!wYdS)NcS�t��N��
StopIteration�rr�5/usr/local/lib/python3.10/test/test_generator_stop.py�f�z1TestPEP479.test_stopiteration_wrapping.<locals>.fc3����VdSrrr�r
rr	�g
��z1TestPEP479.test_stopiteration_wrapping.<locals>.gzgenerator raised StopIteration)ZassertRaisesRegex�RuntimeError�next)�selfrrr
r	�test_stopiteration_wrappings�"�z&TestPEP479.test_stopiteration_wrappingc
s�dd���fdd�}zt|��Wn+ty<}z|�t|j�t�|�t|j�t�|�|j�WYd}~dSd}~ww|�	d�dS)NcSrrrrrrr	r
rz9TestPEP479.test_stopiteration_wrapping_context.<locals>.fc3rrrrr
rr	rrz9TestPEP479.test_stopiteration_wrapping_context.<locals>.gzE__cause__, __context__, or __suppress_context__ were not properly set)
rrZassertIs�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__rrrrrr	rs	r�__main__)Z
__future__rZunittestZTestCaserr�mainrrrr	�<module>s�