+
    Dfj                     Z    R t RR.t^ RIt^ RIt^ RIHt  ! R R]4      t ! R R]4      tR# )z/
Testing helpers related to the module system.
	NoReactorAlternateReactorN)SetAsideModulec                   6   a  ] tR t^t o RtR tR tR tRtV t	R# )r   zW
Context manager that uninstalls the reactor, if any, and then restores it
afterwards.
c                4    \         P                  ! V R 4       R# ztwisted.internet.reactorN)r   __init__selfs   &E/usr/lib/python3/dist-packages/twisted/internet/test/modulehelpers.pyr   NoReactor.__init__   s    &@A    c                x    \         P                  ! V 4       R V P                  9   d   \        P                  =R# R# r   )r   	__enter__modulestwistedinternetreactorr	   s   &r   r   NoReactor.__enter__   s-      &%5  ( 6r   c                    \         P                  ! WW#4       V P                  P                  R R4      pVe   V\        P
                  n        R#  \        P
                  =R#   \         d     R# i ; ir   )r   __exit__r   getr   r   r   AttributeError)r
   excTypeexcValue	tracebackr   s   &&&& r   r   NoReactor.__exit__   sb    xC ,,""#=tD'.G$$$,! s   A" "A10A1 N)
__name__
__module____qualname____firstlineno____doc__r   r   r   __static_attributes____classdictcell____classdict__s   @r   r   r      s     
B)
 r   c                   0   a  ] tR t^-t o RtR tR tRtV tR# )r   zX
A context manager which temporarily installs a different object as the
global reactor.
c                <    \         P                  V 4       Wn        R# )z>
@param reactor: Any object to install as the global reactor.
N)r   r   	alternate)r
   r   s   &&r   r   AlternateReactor.__init__3   s     	4  r   c                    \         P                  V 4       V P                  \        P                  n        V P                  \        P                  R &   R# r   )r   r   r)   r   r   r   sysr   r	   s   &r   r   AlternateReactor.__enter__:   s5    D!#'>> 26.../r   )r)   N)	r   r   r    r!   r"   r   r   r#   r$   r%   s   @r   r   r   -   s     
!A Ar   )	r"   __all__r,   twisted.internetr   twisted.test.test_twistedr   r   r   r   r   r   <module>r1      s:   
 *
+ 
  4 8Ay Ar   