+
    üÐj  ã                   óv   € R t ^ RIt^ RIHt ^ RIHt ^ RIHt  ! R R4      t ! R R]]P                  4      t
R# )	z2
Tests for warning suppression features of Trial.
N)ÚnamedAny)Úunittest)Úsuppressionc                   óZ   a € ] tR t^t o RtR tR tR tR tR t	R t
R tR	 tR
 tRtV tR# )ÚSuppressionMixinz^
Tests for the warning suppression features of
L{twisted.trial.unittest.SynchronousTestCase}.
c                óN   € VP                  \        P                  ! 4       4       R # )N)ÚrunÚpyunitÚ
TestResult)ÚselfÚsuites   &&ÚE/usr/lib/python3/dist-packages/twisted/trial/test/test_suppression.pyÚrunTestsÚSuppressionMixin.runTests   s   € Ø�	‰	”&×#Ò#Ó%Ö&ó    c                ó<   € \         P                  ! V! V4      .4      # )z¾
Return a new L{unittest.TestSuite} with a single test method in it.

@param cls: A L{TestCase} subclass defining a test method.

@param methodName: The name of the test method from C{cls}.
)r	   Ú	TestSuite)r   ÚclsÚ
methodNames   &&&r   Ú_loadÚSuppressionMixin._load   s   € ô ×Ò¡ Z£Ð 1Ó2Ð2r   c                ó`   € T P                  V Uu. uF  q3R,          NK  	  upV4       R# u upi )aÖ  
Assert that a certain number of warnings with certain messages were
emitted in a certain order.

@param warnings: A list of emitted warnings, as returned by
    C{flushWarnings}.

@param which: A list of strings giving warning messages that should
    appear in C{warnings}.

@raise self.failureException: If the warning messages given by C{which}
    do not match the messages in the warning information in C{warnings},
    or if they do not appear in the same order.
ÚmessageN)ÚassertEqual)r   ÚwarningsÚwhichÚwarnings   &&& r   Ú_assertWarningsÚ SuppressionMixin._assertWarnings#   s,   € ð 	×Ñ¹HÓE¹H° )×,Ð,¹HÑEÀuÖMùÒEs   �+c                óD  € V P                  V P                  V P                  R4      4       V P                  V P                  P                  .4      pV P                  V\        P                  \        P                  \        P                  \        P                  .4       R# )z{
Suppressions defined by the test method being run are applied to any
warnings emitted while running the C{setUp} fixture.
ÚtestSuppressMethodN)	r   r   ÚTestSetUpSuppressionÚflushWarningsÚ_emitr   r   ÚCLASS_WARNING_MSGÚMODULE_WARNING_MSG©r   ÚwarningsShowns   & r   Útest_setUpSuppressionÚ&SuppressionMixin.test_setUpSuppression4   s{   € ð
 	�‰�d—j‘j ×!:Ñ!:Ð<PÓQÔRØ×*Ñ*¨D×,EÑ,E×,KÑ,KÐ+LÓMˆØ×ÑØä×-Ñ-Ü×.Ñ.Ü×-Ñ-Ü×.Ñ.ð	ö	
r   c                óD  € V P                  V P                  V P                  R4      4       V P                  V P                  P                  .4      pV P                  V\        P                  \        P                  \        P                  \        P                  .4       R# )z~
Suppressions defined by the test method being run are applied to any
warnings emitted while running the C{tearDown} fixture.
r    N)	r   r   ÚTestTearDownSuppressionr"   r#   r   r   r$   r%   r&   s   & r   Útest_tearDownSuppressionÚ)SuppressionMixin.test_tearDownSuppressionE   s{   € ð
 	�‰�d—j‘j ×!=Ñ!=Ð?SÓTÔUØ×*Ñ*¨D×,HÑ,H×,NÑ,NÐ+OÓPˆØ×ÑØä×-Ñ-Ü×.Ñ.Ü×-Ñ-Ü×.Ñ.ð	ö	
r   c                ó  € V P                  V P                  V P                  R4      4       V P                  V P                  P                  .4      pV P                  V\        P                  \        P                  .4       R# )z„
A suppression set on a test method prevents warnings emitted by that
test method which the suppression matches from being emitted.
r    N)	r   r   ÚTestSuppressionr"   r#   r   r   r$   r%   r&   s   & r   Útest_suppressMethodÚ$SuppressionMixin.test_suppressMethodV   sf   € ð
 	�‰�d—j‘j ×!5Ñ!5Ð7KÓLÔMØ×*Ñ*¨D×,@Ñ,@×,FÑ,FÐ+GÓHˆØ×ÑØÜ×*Ñ*¬K×,JÑ,JÐKö	
r   c                ó–  € V P                  V P                  V P                  R4      4       V P                  V P                  P                  .4      pV P                  V^ ,          R,          \        P                  4       V P                  V^,          R,          \        P                  4       V P                  \        V4      ^4       R# )z¬
A suppression set on a L{SynchronousTestCase} subclass prevents warnings
emitted by any test methods defined on that class which match the
suppression from being emitted.
ÚtestSuppressClassr   N)
r   r   r/   r"   r#   r   r   ÚMETHOD_WARNING_MSGr%   Úlenr&   s   & r   Útest_suppressClassÚ#SuppressionMixin.test_suppressClassb   s–   € ð 	�‰�d—j‘j ×!5Ñ!5Ð7JÓKÔLØ×*Ñ*¨D×,@Ñ,@×,FÑ,FÐ+GÓHˆØ×Ñ˜ qÕ)¨)Õ4´k×6TÑ6TÔUØ×Ñ˜ qÕ)¨)Õ4´k×6TÑ6TÔUØ×Ñœ˜]Ó+¨QÖ/r   c                ó–  € V P                  V P                  V P                  R4      4       V P                  V P                  P
                  .4      pV P                  V^ ,          R,          \        P                  4       V P                  V^,          R,          \        P                  4       V P                  \        V4      ^4       R# )z•
A suppression set on a module prevents warnings emitted by any test
mewthods defined in that module which match the suppression from being
emitted.
ÚtestSuppressModuler   N)r   r   ÚTestSuppression2r"   r/   r#   r   r   r4   r$   r5   r&   s   & r   Útest_suppressModuleÚ$SuppressionMixin.test_suppressModulen   s–   € ð 	�‰�d—j‘j ×!6Ñ!6Ð8LÓMÔNØ×*Ñ*¨D×,@Ñ,@×,FÑ,FÐ+GÓHˆØ×Ñ˜ qÕ)¨)Õ4´k×6TÑ6TÔUØ×Ñ˜ qÕ)¨)Õ4´k×6SÑ6SÔTØ×Ñœ˜]Ó+¨QÖ/r   c                óò  € V P                  V P                  V P                  R4      4       V P                  V P                  P                  .4      pV P                  V^ ,          R,          \        P                  4       V P                  V^,          R,          \        P                  4       V P                  V^,          R,          \        P                  4       V P                  \        V4      ^4       R# )zÔ
The suppression set on a test method completely overrides a suppression
with wider scope; if it does not match a warning emitted by that test
method, the warning is emitted, even if a wider suppression matches.
ÚtestOverrideSuppressClassr   N)r   r   r/   r"   r#   r   r   r4   r$   r%   r5   r&   s   & r   Útest_overrideSuppressClassÚ+SuppressionMixin.test_overrideSuppressClassz   s¶   € ð 	�‰�d—j‘j ×!5Ñ!5Ð7RÓSÔTØ×*Ñ*¨D×,@Ñ,@×,FÑ,FÐ+GÓHˆØ×Ñ˜ qÕ)¨)Õ4´k×6TÑ6TÔUØ×Ñ˜ qÕ)¨)Õ4´k×6SÑ6SÔTØ×Ñ˜ qÕ)¨)Õ4´k×6TÑ6TÔUØ×Ñœ˜]Ó+¨QÖ/r   © N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   r   r(   r,   r0   r6   r;   r?   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r   r   r      s=   ø‡ € ñò
'ò3òNò"
ò"
ò"

ò
0ò
0÷0ð 0r   r   c                   óZ   € ] tR t^ˆtRt]! R4      t]! R4      t]! R4      t]! R4      t	Rt
R# )ÚSynchronousSuppressionTestsz(
@see: L{twisted.trial.test.test_tests}
z>twisted.trial.test.suppression.SynchronousTestSetUpSuppressionzAtwisted.trial.test.suppression.SynchronousTestTearDownSuppressionz9twisted.trial.test.suppression.SynchronousTestSuppressionz:twisted.trial.test.suppression.SynchronousTestSuppression2rA   N)rB   rC   rD   rE   rF   r   r!   r+   r/   r:   rG   rA   r   r   rK   rK   ˆ   sF   † ññ $ØHóÐñ 'ØKóÐñ ØCó€Oñ  ØDóÔr   rK   )rF   r   r	   Útwisted.python.reflectr   Útwisted.trialÚtwisted.trial.testr   r   ÚSynchronousTestCaserK   rA   r   r   Ú<module>rP      s:   ðñó
 å +Ý "Ý *÷u0ñ u0ôpÐ"2°H×4PÑ4Pö r   