📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-06-28 05:43:06
📂
/ (Root)
/
opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
greenlet
/
tests
/
__pycache__
📍 /opt/hc_python/lib/python3.12/site-packages/greenlet/tests/__pycache__
🔄 Refresh
✏️
Editing: test_extension_interface.cpython-312.pyc
Read Only
� }�*j� � � � d dl Z d dlZddlmZ ddlmZ ddlmZ G d� de� Zedk( rd dl Z e j � yy) � N� )�_test_extension)�TestCase)�ignores_leakcheckc �^ � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z d � Zd � Zd� Z ed� � Zy )� CAPITestsc �v � | j dt j t j d� � � � y )N�2 c � � y)Nr � r � �X/opt/hc_python/lib64/python3.12/site-packages/greenlet/tests/test_extension_interface.py�<lambda>z'CAPITests.test_switch.<locals>.<lambda> s � �br )�assertEqualr �test_switch�greenlet��selfs r r zCAPITests.test_switch s, � ������+�+�H�,=�,=�j�,I�J� Lr c � � d� }t j |� }| j dt j |dd�� � | j t d� 5 t j d� d d d � y # 1 sw Y y xY w)Nc � � | |z S �Nr ��x�ys r �adderz+CAPITests.test_switch_kwargs.<locals>.adder s � ��q�5�Lr � � � r zargument 1 must be greenletznot a greenlet)r r r �test_switch_kwargs�assertRaisesRegex� TypeError)r r �gs r r zCAPITests.test_switch_kwargs sc � � ����e�$������O�>�>�q�A��K�L� � #� #�I�/L� M��.�.�/?�@� N� M� M�s �A6�6A?c � � d� }t j |� j � }| j d t j |� � y )Nc � � d� } t j | � }|j � t j � j j |� t j � j j t d� � y )Nc �� � t j � j j � t j � j j � t d� �)Nz#Should never have reached this code)r � getcurrent�parent�switch�AssertionErrorr r r �barz2CAPITests.test_setparent.<locals>.foo.<locals>.bar sF � ��#�#�%�,�,�3�3�5� �#�#�%�,�,�3�3�5�$�%J�K�Kr zShould never reach this code)r r( r&