HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/twisted/internet/test/__pycache__/test_asyncioreactor.cpython-38.pyc
U


W[3�@shdZddlmZddlmZzddlmZddlZWnek
rPdZdZ	YnXGdd	�d	ee�Z
dS)
z/
Tests for L{twisted.internet.asyncioreactor}.
�)�SynchronousTestCase�)�ReactorBuilder)�AsyncioSelectorReactorNzRequires asyncio.c@s$eZdZdZedkreZdd�ZdS)�AsyncioSelectorReactorTestsz*
    L{AsyncioSelectorReactor} tests.
    Ncs`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.
        cs��|������dS)N)�append�result�stop)�future�Zreactorr��K/usr/lib/python3/dist-packages/twisted/internet/test/test_asyncioreactor.py�	completed'szTAsyncioSelectorReactorTests.test_defaultEventLoopFromGlobalPolicy.<locals>.completedTr)ZtimeoutN)r�asyncioZFutureZadd_done_callbackZ
set_resultZassertEqualZ
runReactor)�selfr
rrrr
�%test_defaultEventLoopFromGlobalPolicys

zAAsyncioSelectorReactorTests.test_defaultEventLoopFromGlobalPolicy)�__name__�
__module__�__qualname__�__doc__r�
skipReason�skiprrrrr
rsr)rZtwisted.trial.unittestrZ
reactormixinsrZtwisted.internet.asyncioreactorrr�ImportErrorrrrrrr
�<module>s