| Server IP : 138.197.176.125 / Your IP : 216.73.217.54 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/twisted/internet/test/__pycache__/ |
Upload File : |
U
W[3 � @ sh d Z ddlmZ ddlmZ zddlmZ ddlZW n ek
rP dZdZ Y nX G dd � d ee�Z
dS )
z/
Tests for L{twisted.internet.asyncioreactor}.
� )�SynchronousTestCase� )�ReactorBuilder)�AsyncioSelectorReactorNzRequires asyncio.c @ s$ e Zd ZdZedkreZdd� ZdS )�AsyncioSelectorReactorTestsz*
L{AsyncioSelectorReactor} tests.
Nc s` t � � t�� }g �� �fdd�}|�|� |�d� | ��g � | j� dd� | ��dg� dS )a
L{AsyncioSelectorReactor} wraps the global policy's event loop
by default. This ensures that L{asyncio.Future}s and
coroutines created by library code that uses
L{asyncio.get_event_loop} are bound to the same loop.
c s �� | �� � � �� d S )N)�append�result�stop)�future�Zreactorr � �K/usr/lib/python3/dist-packages/twisted/internet/test/test_asyncioreactor.py� completed'