Viewing File: /opt/hc_python/lib/python3.12/site-packages/greenlet/tests/__pycache__/test_cpp.cpython-312.pyc
�
`�*j\ � � � d dl Z d dlZd dlZd dlZd dlZddlmZ ddlmZ ddlmZ G d� de� Z e
dk( r ej � yy) � N� )�WIN)�TestCase)�_test_extension_cppc �b � e Zd Zd� Zd� Zd� Zd� Z ej e d� d� � Z
d� Zd� 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&