+
    üÐj  ã                   ó–   € R t ^ RIt^ RIHt ^ RIHt  ! R R]4      t ^ RIHt	 ]	tRt]f   Rt ! R R	]4      tR#   ]
 d    Rt L i ; i)
z&
Tests for twisted.internet.glibbase.
N)ÚensureNotImported)ÚTestCasec                   ó<   a € ] tR t^t o RtR tR tR tR tRt	V t
R# )ÚEnsureNotImportedTestszI
L{ensureNotImported} protects against unwanted past and future imports.
c           	     óŒ   € / pV P                  \        RV4       \        RR.R. ROR7       V P                  VRRRRRR/4       R# )	z¡
If the specified modules have never been imported, and import
prevention is requested, L{ensureNotImported} makes sure they will not
be imported in the future.
ÚmodulesÚm1Úm2ú
A message.Úm3©ÚpreventImportsN)r   r	   r   ©ÚpatchÚsysr   ÚassertEqual©Úselfr   s   & ÚE/usr/lib/python3/dist-packages/twisted/internet/test/test_glibbase.pyÚtest_ensureWhenNotImportedÚ1EnsureNotImportedTests.test_ensureWhenNotImported   sG   € ð ˆØ�
‰
”3˜	 7Ô+Ü˜4 ˜,¨ÒEWÕXØ×Ñ˜ 4¨¨t°T¸4ÀÐ"FÖGó    c                óx   € / pV P                  \        RV4       \        RR.R4       V P                  V/ 4       R# )z€
If the specified modules have never been imported, and import
prevention is not requested, L{ensureNotImported} has no effect.
r   r   r	   r
   Nr   r   s   & r   Ú%test_ensureWhenNotImportedDontPreventÚ<EnsureNotImportedTests.test_ensureWhenNotImportedDontPrevent   s7   € ð
 ˆØ�
‰
”3˜	 7Ô+Ü˜4 ˜,¨Ô5Ø×Ñ˜ "Ö%r   c                óŒ   € RR/pV P                  \        RV4       \        RR.RRR.R7       V P                  VRRRR/4       R# )zn
If the specified modules have been set to L{None} in C{sys.modules},
L{ensureNotImported} does not complain.
r	   Nr   r   r
   r   r   r   s   & r   Útest_ensureWhenFailedToImportÚ4EnsureNotImportedTests.test_ensureWhenFailedToImport)   sJ   € ð
 ˜�,ˆØ�
‰
”3˜	 7Ô+Ü˜4 ˜,¨ÀdÈDÀ\ÕRØ×Ñ˜ 4¨¨t°TÐ":Ö;r   c                óô   € \        4       pRV/pV P                  \        RV4       V P                  \        \
        RR.RRR.R7      pV P                  VRV/4       V P                  VP                  R4       R# )zi
If one of the specified modules has been previously imported,
L{ensureNotImported} raises an exception.
r	   r   r   r
   r   N)r
   )Úobjectr   r   ÚassertRaisesÚImportErrorr   r   Úargs)r   Úmoduler   Úes   &   r   Útest_ensureFailsWhenImportedÚ3EnsureNotImportedTests.test_ensureFailsWhenImported3   sz   € ô
 “ˆØ˜�.ˆØ�
‰
”3˜	 7Ô+Ø×ÑÜÜØ�4ˆLØØ  $˜<ð ó 
ˆð 	×Ñ˜ 4¨ .Ô1Ø×Ñ˜Ÿ™ Ö1r   © N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   r   r%   Ú__static_attributes__Ú__classdictcell__©Ú__classdict__s   @r   r   r      s$   ø‡ € ñò	Hò&ò<÷2ð 2r   r   )Ú	gireactorzgi reactor not availablec                   ó.   a € ] tR t^Rt o Rt]tR tRtV t	R# )ÚGlibReactorBaseTestsz‰
Tests for the private C{twisted.internet._glibbase.GlibReactorBase}
done via the public C{twisted.internet.gireactor.PortableGIReactor}
c                ó’   € \         P                  RR7      pV P                  RVP                  4       4       VP	                  4        R# )z’
C{simulate} can be called without raising any errors when there are
no delayed calls for the reactor and hence there is no defined sleep
period.
F)ÚuseGtkN)r1   ÚPortableGIReactorÚassertIsÚtimeoutÚsimulate)r   Úsuts   & r   Útest_simulateÚ"GlibReactorBaseTests.test_simulateZ   s4   € ô ×)Ñ)°Ð)Ó7ˆà�‰�d˜CŸK™K›MÔ*à�‰Žr   r'   N)
r(   r)   r*   r+   r,   ÚmissingGlibReactorÚskipr;   r-   r.   r/   s   @r   r3   r3   R   s   ø‡ € ñð
 €D÷
ð 
r   r3   )r,   r   Útwisted.internet._glibbaser   Útwisted.trial.unittestr   r   Útwisted.internetr1   Ú
_gireactorr!   r=   r3   r'   r   r   Ú<module>rC      se   ðñó
 å 8Ý +ô42˜Xô 42ðnÝ8ð €IàÐ ØÒØ3Ðô˜8ö øð ô Ø‚Iðús   Ÿ< ¼	AÁA