python (3.11.7)
    e`x                         	 d dl Z d dlZd dlmZmZmZ d dlmZ  G d de j                  Z	e
dk    r e j                     dS dS )    N)captured_stderr
disable_gc
gc_collect)supportc                       e Zd Z	 d Zd Zd Zd Zd Zd Zd Z	d Z
d	 Zd
 Zd Z
d Zd
 Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Z d Z!d  Z"d! Z#d"S )#TestPEP380Operationc                     	 g fd}fd |            D ]}                     d|           |                     g d           d S )Nc               3      K                        d                         E d {V                       d           d S NStarting g1Finishing g1appendg2traces   H/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/test/test_yield_from.pyg1zOTestPEP380Operation.test_delegation_of_initial_next_to_subgenerator.<locals>.g1   sH      LL'''rttOOOOOOOLL(((((    c               3   h   K                         d           dV                        d           d S )NStarting g2*   Finishing g2r   r   s   r   r   zOTestPEP380Operation.test_delegation_of_initial_next_to_subgenerator.<locals>.g2   s:      LL'''HHHLL(((((r   Yielded )r   r   z
Yielded 42r   r
   r   assertEqualselfr   xr   r   s      @@r   /test_delegation_of_initial_next_to_subgeneratorzCTestPEP380Operation.test_delegation_of_initial_next_to_subgenerator   s    	 	) 	) 	) 	) 	) 	)	) 	) 	) 	) 	)  	. 	.ALLL,----  
  
  
 	 	 	 	 	r   c                 @   	 g fd}fd	  |            D ]}                     d|           	 |                     d           n8# t          $ r+}|                     |j        d         d           Y d }~nd }~ww xY w|                     g d           d S )Nc               3      K   	                      d                         E d {V                       d           d S #                      d           w xY wr   r   r   s   r   r   zKTestPEP380Operation.test_raising_exception_in_initial_next_call.<locals>.g11   se      
-]+++244^,,,,,^,,,,s   %A Ac                      	                       d           t          d          #                       d           w xY w)Nr   spanish inquisition occurredr   r   
ValueErrorr   s   r   r   zKTestPEP380Operation.test_raising_exception_in_initial_next_call.<locals>.g27   sB    
-]+++ !?@@@^,,,,s   $'