
    h	                        S r SSKrSSKJrJr  SrSrSr " S S\5      r	 " S	 S
\5      r
 " S S\5      r " S S5      r " S S\5      r " S S5      r " S S5      r " S S\5      r\R"                  " \S9/r " S S\\R$                  5      r " S S\\5      r " S S\\5      r " S S\\R$                  5      r " S  S!\\R.                  5      r " S" S#\\5      r " S$ S%\\5      r " S& S'\\R.                  5      rg)(z
Test cases used to make sure that warning suppression works at the module,
method, and class levels.

See the L{twisted.trial.test.test_tests} module docstring for details about how
this code is arranged.
    N)unittestutilzmethod warning messagezclass warning messagezmodule warning messagec                       \ rS rSrSrg)MethodWarning    N__name__
__module____qualname____firstlineno____static_attributes__r       e/root/1688_scrapy/alibaba-scraper/venv/lib/python3.13/site-packages/twisted/trial/test/suppression.pyr   r          r   r   c                       \ rS rSrSrg)ClassWarning   r   Nr	   r   r   r   r   r      r   r   r   c                       \ rS rSrSrg)ModuleWarning   r   Nr	   r   r   r   r   r      r   r   r   c                       \ rS rSrSrS rSrg)	EmitMixin#   z*
Mixin for emiting a variety of warnings.
c                     [         R                  " [        [        5        [         R                  " [        [
        5        [         R                  " [        [        5        g N)warningswarnMETHOD_WARNING_MSGr   CLASS_WARNING_MSGr   MODULE_WARNING_MSGr   selfs    r   _emitEmitMixin._emit(   s/    (-8'6(-8r   r   N)r
   r   r   r   __doc__r$   r   r   r   r   r   r   #   s    9r   r   c                       \ rS rSr\R
                  " \S9/rS r\R
                  " \S9/\l        S r	S r
/ \
l        Srg)SuppressionMixin.   messagec                 $    U R                  5         g r   r$   r"   s    r   testSuppressMethod#SuppressionMixin.testSuppressMethod1       

r   c                 $    U R                  5         g r   r-   r"   s    r   testSuppressClass"SuppressionMixin.testSuppressClass6   r0   r   c                 $    U R                  5         g r   r-   r"   s    r   testOverrideSuppressClass*SuppressionMixin.testOverrideSuppressClass9   r0   r   r   N)r
   r   r   r   r   suppressr    r.   r   r2   r5   r   r   r   r   r(   r(   .   sF    &789H $(==9K#L"M *,&r   r(   c                       \ rS rSrS rSrg)SetUpSuppressionMixin?   c                 $    U R                  5         g r   r-   r"   s    r   setUpSetUpSuppressionMixin.setUp@   r0   r   r   N)r
   r   r   r   r<   r   r   r   r   r9   r9   ?       r   r9   c                       \ rS rSrS rSrg)TearDownSuppressionMixinD   c                 $    U R                  5         g r   r-   r"   s    r   tearDown!TearDownSuppressionMixin.tearDownE   r0   r   r   N)r
   r   r   r   rC   r   r   r   r   r@   r@   D   r>   r   r@   c                       \ rS rSrS rSrg)TestSuppression2MixinI   c                 $    U R                  5         g r   r-   r"   s    r   testSuppressModule(TestSuppression2Mixin.testSuppressModuleJ   r0   r   r   N)r
   r   r   r   rI   r   r   r   r   rF   rF   I   r>   r   rF   r*   c                       \ rS rSrSrg)SynchronousTestSuppressionQ   r   Nr	   r   r   r   rL   rL   Q   r   r   rL   c                       \ rS rSrSrg)SynchronousTestSetUpSuppressionU   r   Nr	   r   r   r   rO   rO   U        	r   rO   c                       \ rS rSrSrg)"SynchronousTestTearDownSuppression[   r   Nr	   r   r   r   rS   rS   [   rQ   r   rS   c                       \ rS rSrSrg)SynchronousTestSuppression2a   r   Nr	   r   r   r   rV   rV   a   r   r   rV   c                       \ rS rSrSrg)AsynchronousTestSuppressione   r   Nr	   r   r   r   rY   rY   e   r   r   rY   c                       \ rS rSrSrg) AsynchronousTestSetUpSuppressioni   r   Nr	   r   r   r   r\   r\   i   rQ   r   r\   c                       \ rS rSrSrg)#AsynchronousTestTearDownSuppressiono   r   Nr	   r   r   r   r_   r_   o   rQ   r   r_   c                       \ rS rSrSrg)AsynchronousTestSuppression2u   r   Nr	   r   r   r   rb   rb   u   r   r   rb   )r&   r   twisted.trialr   r   r   r    r!   Warningr   r   r   r   r(   r9   r@   rF   r7   SynchronousTestCaserL   rO   rS   rV   TestCaserY   r\   r_   rb   r   r   r   <module>rh      s&  
  (- + - 	G 		7 		G 	9 9,y ," 
 
I 
 MM"456	!183O3O 		5		8		"79U9U 		"2H4E4E 		6		9		#8(:K:K 	r   