%PDF- %PDF-
Direktori : /lib/python3/dist-packages/twisted/internet/test/__pycache__/ |
Current File : //lib/python3/dist-packages/twisted/internet/test/__pycache__/test_threads.cpython-312.pyc |
� Ϫ�f� � � � 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'