Current File : //usr/lib/python3/dist-packages/twisted/internet/test/__pycache__/test_default.cpython-312.pyc |
�
Ϫ�f�
� � � d Z ddlmZ ddlZddlZddlmZ ddlmZ ddl m
Z
mZ ddlm
Z
ddlmZ dd lmZ dd
lmZ ddlmZ edd
� Z edd� Z edd� Z edd� Z G d� de� Z G d� de� Z G d� de� Zy)z(
Tests for L{twisted.internet.default}.
� )�annotationsN)�Callable)�default)�_getInstallFunction�install)�IReactorCore)� NoReactor)�
requireModule)�Platform)�SynchronousTestCase�posix�other�linux2�nt�win32�darwinc �( � e Zd ZdZdd�Zdd�Zdd�Zy)�PollReactorTestsz�
Tests for the cases of L{twisted.internet.default._getInstallFunction}
in which it picks the poll(2) or epoll(7)-based reactors.
c � � t t d� r| j |j d� y| j |j d� y)zz
Assert the given function will install the poll() reactor, or select()
if poll() is unavailable.
�pollztwisted.internet.pollreactor�twisted.internet.selectreactorN)�hasattr�select�assertEqual�
__module__��selfr s �D/usr/lib/python3/dist-packages/twisted/internet/test/test_default.py�assertIsPollzPollReactorTests.assertIsPoll! s<