Viewing File: /opt/hc_python/lib/python3.12/site-packages/greenlet/tests/__pycache__/test_cpp.cpython-312.pyc
�
i0i�
� � � d dl mZ d dl mZ d dlZd dlZd dlZddlmZ ddlmZ ddlm Z G d� d e� Z
ed
k( r ej � yy)� )�print_function)�absolute_importN� )�_test_extension_cpp)�TestCase)�WINc �\ � e Zd Zd� Zd� Zd� Zd� Z ej e d� d� � Z
d� Zy) �CPPTestsc � � g }t d� D ]G }t j t j � }|j |� |j |� �I t
|� D ]% \ }}| j |j � |� �' y )N� )�range�greenletr �test_exception_switch�switch�append� enumerate�assertEqual)�self� greenlets�i�gs �H/opt/hc_python/lib64/python3.12/site-packages/greenlet/tests/test_cpp.pyr zCPPTests.test_exception_switch
sp � �� ��q��A��!�!�"5�"K�"K�L�A�
�H�H�Q�K����Q�� � �i�(�D�A�q����Q�X�X�Z��+� )� c �R � dd l }dd l}|j j |j j t
� d� }|j |t |t � s|j n|g}|}| j t j � 5 }t j |dt j �� d d d � j }| j! � } | j# |j$ | � | j# d|j&