| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/twisted/internet/test/__pycache__/ |
Upload File : |
�
oj� � � � d Z ddlZddlZddlmZ ddlmZ ddlmZ ddl m
Z
ddlmZ ddl
mZ G d � d
e� Z e� j# ej% � � y)z2
Tests for implementations of L{IReactorThreads}.
� N)�ref)�IReactorThreads)�ReactorBuilder)�isInIOThread)�
ThreadPool)�Versionc �R � e Zd ZdZefZd� Zd� Zd� Zd� Z d� Z
d� Zd� Zd � Z
d
� Zd� Zy)
�ThreadTestsBuilderzD
Builder for defining tests relating to L{IReactorThreads}.
c � ���� g �| j � ��j � �| j �t � | j �j
d� ���fd�}�j
|� | j �d� | j �d d� | j �d d� | j �j d� y )
z�
C{reactor.getThreadPool()} returns an instance of L{ThreadPool} which
starts when C{reactor.run()} is called and stops before it returns.
z(Pool should not start before reactor.runc � �� �j � j � �j � j � �j � y �N)�append�started�joined�stop)�pool�reactor�states ����D/usr/lib/python3/dist-packages/twisted/internet/test/test_threads.py�fz0ThreadTestsBuilder.test_getThreadPool.<locals>.f'