File: D:/Python311/Lib/test/__pycache__/test_yield_from.cpython-311.opt-2.pyc
�
��Vc~| � � � 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 �N�Starting g1�Finishing g1��append��g2�traces ���(D:\Python311\Lib\test\test_yield_from.py�g1zOTestPEP380Operation.test_delegation_of_initial_next_to_subgenerator.<locals>.g1 sH �� � � ��L�L��'�'�'��r�t�t�O�O�O�O�O�O�O��L�L��(�(�(�(�(� c 3 �h �K � � � d� � dV � � � d� � d S )N�Starting g2�* �Finishing g2r �r s �r r zOTestPEP380Operation.test_delegation_of_initial_next_to_subgenerator.<locals>.g2 s: �� � � ��L�L��'�'�'��H�H�H��L�L��(�(�(�(�(r �Yielded )r r z
Yielded 42r r
�r �assertEqual��selfr �xr r s @@r �/test_delegation_of_initial_next_to_subgeneratorzCTestPEP380Operation.test_delegation_of_initial_next_to_subgenerator s� ��� � � �� )� )� )� )� )� )� )� )� )� )� )� ���� .� .�A��L�L�L���,�-�-�-�-�����
�
�
� � � � � 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 �� � � �
-����]�+�+�+��2�4�4�����������^�,�,�,�,�,�����^�,�,�,�,���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 �$'