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 :  /usr/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 : /usr/lib/python3/dist-packages/twisted/internet/test/__pycache__/test_time.cpython-310.pyc
o

�b��@s�dZddlmZmZddlmZddlmZddlm	Z	ddl
mZGdd�de�ZGd	d
�d
e�Z
e��e���e��e
���dS)z/
Tests for implementations of L{IReactorTime}.
�)�IReactorThreads�IReactorTime)�ReactorBuilder)�msg)�platform)�SkipTestc@s&eZdZdZefZdd�Zdd�ZdS)�TimeTestsBuilderzA
    Builder for defining tests relating to L{IReactorTime}.
    cCs"|��}|�d|j�|��dS)z?
        The reactor can be stopped by a delayed call.
        rN)�buildReactor�	callLater�stop�run)�self�reactor�r�A/usr/lib/python3/dist-packages/twisted/internet/test/test_time.py�test_delayedCallStopsReactorsz-TimeTestsBuilder.test_delayedCallStopsReactorcs�|���t���rdd��ntd����ddddd��}�fd	d
�������fdd�����|�|���|�|��	��dS)
z
        Scheduling a delayed call at a point in the extreme future does not
        prevent normal reactor operation.
        cSstd|d�|�|�dS)Nz.Thread-based event-source scheduling %(event)r)�format�event)r�callFromThread)rrrrr�eventSource&s�z=TimeTestsBuilder.test_distantDelayedCall.<locals>.eventSourcez=Do not know how to synthesize non-time event to stop the test���cSsdS�Nrrrrr�<lambda>2sz:TimeTestsBuilder.test_distantDelayedCall.<locals>.<lambda>cstd����dS)NzStopping the reactor)rrr)rrrr4sz6TimeTestsBuilder.test_distantDelayedCall.<locals>.stopcs
����Srrr�rrrrrr<s
N)
r	r�
providedByrr
r�
assertTrue�active�assertIn�getDelayedCalls)r
�delayedCallrrr�test_distantDelayedCalls

�z(TimeTestsBuilder.test_distantDelayedCallN)�__name__�
__module__�__qualname__�__doc__r�requiredInterfacesrr"rrrrrs
rc@s6eZdZdZefZe��rdgZnddgZdd�Z	dS)�GlibTimeTestsBuilderza
    Builder for defining tests relating to L{IReactorTime} for reactors based
    off glib.
    z/twisted.internet.gtk2reactor.PortableGtkReactorz*twisted.internet.glib2reactor.Glib2Reactorz(twisted.internet.gtk2reactor.Gtk2Reactorcs^ddl}|���g���fdd�}��fdd����|jd|�|��d�|��d	g�dS)
z�
        A
        L{reactor.callLater<twisted.internet.interfaces.IReactorTime.callLater>}
        call scheduled from a C{gobject.timeout_add}
        call is run on time.
        rNcs��d��dS)Nr)r
r)�callbackrrr�	gschedulehsz8GlibTimeTestsBuilder.test_timeout_add.<locals>.gschedulecs��d����dS)NT)�appendrr)r�resultrrr)ls
z7GlibTimeTestsBuilder.test_timeout_add.<locals>.callback�
�T)�gobjectr	�callWhenRunning�timeout_add�
runReactor�assertEqual)r
r/r*r)r)rr,r�test_timeout_add[sz%GlibTimeTestsBuilder.test_timeout_addN)
r#r$r%r&rr'r�	isWindows�	_reactorsr4rrrrr(Ks�r(N)r&�twisted.internet.interfacesrr�#twisted.internet.test.reactormixinsr�twisted.python.logr�twisted.python.runtimer�twisted.trial.unittestrrr(�globals�update�makeTestCaseClassesrrrr�<module>s<*

Anon7 - 2022
AnonSec Team