AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/twisted/internet/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /lib/python3/dist-packages/twisted/internet/test/__pycache__/test_default.cpython-310.pyc
o

�b[
�@s�dZddlZddlZddlmZddlmZmZddlm	Z	ddl
mZddlm
Z
ddlmZdd	lmZed
d�Zed
d�Zed
d�Zed
d�ZGdd�de�ZGdd�de�ZGdd�de�ZdS)z(
Tests for L{twisted.internet.default}.
�N)�default)�_getInstallFunction�install)�IReactorCore)�	NoReactor)�
requireModule)�Platform)�SynchronousTestCase�posix�other�linux2�nt�win32�darwinc@s(eZdZdZdd�Zdd�Zdd�ZdS)	�PollReactorTestsz�
    Tests for the cases of L{twisted.internet.default._getInstallFunction}
    in which it picks the poll(2) or epoll(7)-based reactors.
    cCs.ttd�r|�|jd�dS|�|jd�dS)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�r�D/usr/lib/python3/dist-packages/twisted/internet/test/test_default.py�assertIsPoll s
zPollReactorTests.assertIsPollcCstt�}|�|�dS)z�
        L{_getInstallFunction} chooses the poll reactor on arbitrary Unix
        platforms, falling back to select(2) if it is unavailable.
        N)r�unixrrrrr�	test_unix*szPollReactorTests.test_unixcCs4tt�}td�dur|�|�dS|�|jd�dS)zu
        L{_getInstallFunction} chooses the epoll reactor on Linux, or poll if
        epoll is unavailable.
        ztwisted.internet.epollreactorN)r�linuxrrrrrrrr�
test_linux2szPollReactorTests.test_linuxN)�__name__r�__qualname__�__doc__rrrrrrrrs

rc@� eZdZdZdd�Zdd�ZdS)�SelectReactorTestsz�
    Tests for the cases of L{twisted.internet.default._getInstallFunction}
    in which it picks the select(2)-based reactor.
    cC�tt�}|�|jd�dS)zM
        L{_getInstallFunction} chooses the select reactor on macOS.
        rN)r�osxrrrrrr�test_osxD�zSelectReactorTests.test_osxcCr%)zO
        L{_getInstallFunction} chooses the select reactor on Windows.
        rN)r�windowsrrrrrr�test_windowsKr(zSelectReactorTests.test_windowsN)r rr!r"r'r*rrrrr$>sr$c@r#)�InstallationTestsz7
    Tests for actual installation of the reactor.
    cCs@t��t�|�dtj�Wd�dS1swYdS)z0
        L{install} installs a reactor.
        ztwisted.internet.reactorN)rr�assertIn�sys�modules)rrrr�test_installXs"�zInstallationTests.test_installcstg��fdd�}|�td|�t��ddlm}|�t�|��|��dg�Wd�dS1s3wYdS)zr
        Importing L{twisted.internet.reactor} installs the default reactor if
        none is installed.
        cs��d�t�S)NT)�appendrr��	installedrr�	installergs
z1InstallationTests.test_reactor.<locals>.installerrr)�reactorTN)	�patchrr�twisted.internetr4�
assertTruer�
providedByr)rr3r4rr1r�test_reactor`s"�zInstallationTests.test_reactorN)r rr!r"r/r9rrrrr+Ssr+)r"rr-r6r�twisted.internet.defaultrr�twisted.internet.interfacesr�twisted.internet.test.test_mainr�twisted.python.reflectr�twisted.python.runtimer�twisted.trial.unittestr	rrr)r&rr$r+rrrr�<module>s"



$

Anon7 - 2022
AnonSec Team