Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
greenlet
/
tests
/
__pycache__
[ HOME ]
Exec
Submit
test_extension_interface.cpython-312.pyc
� x�/i� � � � d dl mZ d dl mZ d dlZd dlZddlmZ ddlmZ G d� de� Ze d k( rd dl Z e j � yy) � )�print_function)�absolute_importN� )�_test_extension)�TestCasec �N � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z d � Zd � Zd� Z y) � 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�� � y )Nc � � | |z S �Nr ��x�ys r �adderz+CAPITests.test_switch_kwargs.<locals>.adder s � ��q�5�Lr � � � r )r r r �test_switch_kwargs)r r �gs r r zCAPITests.test_switch_kwargs s6 � � ����e�$������O�>�>�q�A��K�Lr 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'