%PDF- %PDF-
Direktori : /lib/python3/dist-packages/twisted/internet/test/__pycache__/ |
Current File : //lib/python3/dist-packages/twisted/internet/test/__pycache__/test_cfreactor.cpython-312.pyc |
� Ϫ�f` � � � d dl mZmZ d dlmZ ddlmZ ereZneZd d�Z e � G d� dee� Z e� j e j � � y) � )� TYPE_CHECKING�List)�SynchronousTestCase� )�ReactorBuilderNc � � y)z0 Do-nothing callable. Stub for testing. N� r � �F/usr/lib/python3/dist-packages/twisted/internet/test/test_cfreactor.py�noopr s � r c �6 � e Zd ZdZdgZdd�Zdd�Zdd�Zdd�Zy) �CoreFoundationSpecificTestszN Tests for platform interactions of the CoreFoundation-based reactor. z$twisted.internet.cfreactor.CFReactorNc �� � | j � }|j d|j � |j dt � | j |� | j |j d� y)zO CFReactor's simulation timer is None after CFReactor crashes. r �d N)�buildReactor� callLater�crashr � runReactor�assertIs�_currentSimulator)�self�rs r �test_whiteboxStopSimulatingz7CoreFoundationSpecificTests.test_whiteboxStopSimulating sR � � ����� ���A�q�w�w�� ���C��������� � �a�)�)�4�0r c � ��� | j � }|j dt � }| j � �d��fd�}d�fd���j d|� | j �� | j |j � |g� y)a\ callLater should not leak global state into CoreFoundation which will be invoked by a different reactor running the main loop. @note: this test may actually be usable for other reactors as well, so we may wish to promote it to ensure this invariant across other foreign-main-loop reactors. r Nc �* �� � j d�� y )Nr )r )�r2�r2stops ��r �stopBlockingzGCoreFoundationSpecificTests.test_callLaterLeakage.<locals>.stopBlocking3 s �� ��L�L��F�#r c �&