| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/dist-packages/twisted/internet/test/ |
Upload File : |
ó
±ZOc @ sˆ d Z e Z d d l m Z d d l m Z d e f d „ ƒ YZ d e f d „ ƒ YZ e ƒ j
e j ƒ ƒ e ƒ j
e j ƒ ƒ d S( s/
Tests for implementations of L{IReactorTime}.
iÿÿÿÿ( t platform( t ReactorBuildert TimeTestsBuilderc B s e Z d Z d „ Z RS( sA
Builder for defining tests relating to L{IReactorTime}.
c C s- | j ƒ } | j d | j ƒ | j ƒ d S( s?
The reactor can be stopped by a delayed call.
i N( t buildReactort callLatert stopt run( t selft reactor( ( sC /usr/lib/python2.7/dist-packages/twisted/internet/test/test_time.pyt test_delayedCallStopsReactor s ( t __name__t
__module__t __doc__R ( ( ( sC /usr/lib/python2.7/dist-packages/twisted/internet/test/test_time.pyR s t GlibTimeTestsBuilderc B s; e Z d Z e j ƒ r$ d g Z n d d g Z d „ Z RS( sa
Builder for defining tests relating to L{IReactorTime} for reactors based
off glib.
s/ twisted.internet.gtk2reactor.PortableGtkReactors* twisted.internet.glib2reactor.Glib2Reactors( twisted.internet.gtk2reactor.Gtk2Reactorc s d d l } | j ƒ ‰ g ‰ ‡ ‡ f d † } ‡ ‡ f d † ‰ ˆ j | j d | ƒ | j ˆ d ƒ | j ˆ t g ƒ d S( sr
A C{reactor.callLater} call scheduled from a C{gobject.timeout_add}
call is run on time.
iÿÿÿÿNc s ˆ j d ˆ ƒ d S( Ni ( R ( ( t callbackR ( sC /usr/lib/python2.7/dist-packages/twisted/internet/test/test_time.pyt gschedule0 s c s ˆ j t ƒ ˆ j ƒ d S( N( t appendt TrueR ( ( t resultR ( sC /usr/lib/python2.7/dist-packages/twisted/internet/test/test_time.pyR 3 s
i
i ( t gobjectR t callWhenRunningt timeout_addt
runReactort assertEqualR ( R R R ( ( R R R sC /usr/lib/python2.7/dist-packages/twisted/internet/test/test_time.pyt test_timeout_add' s ( R
R R R t isWindowst _reactorsR ( ( ( sC /usr/lib/python2.7/dist-packages/twisted/internet/test/test_time.pyR
s N( R t typet
__metaclass__t twisted.python.runtimeR t# twisted.internet.test.reactormixinsR R R
t globalst updatet makeTestCaseClasses( ( ( sC /usr/lib/python2.7/dist-packages/twisted/internet/test/test_time.pyt <module> s