
    <|ha                         d dl Z d dlZd dlmZ d dlmZ d dlmZ ej                  r ej                           G d de
      Zd Zd Z G d d	ej                        Zed
k(  r ej"                          yy)    N)six)ExpectedExceptionc                       e Zd Zy)RawExceptionN)__name__
__module____qualname__     Z/var/www/html/test/engine/venv/lib/python3.12/site-packages/gevent/tests/test__exc_info.pyr   r   
   s    r   r   c                 f    t        j                         dk(  sJ t        j                                | )NNNN)sysexc_info)errs    r   hellor      s'    <<>//??/
Ir   c                  L    	 t        t        d             y # t        $ r Y y w xY w)Nexpected exception in hello)r   ExpectedErrorr
   r   r   hello2r      s'    m9:; s    	##c                       e Zd Zd Zd Zy)Testc                    t        d      }t        d      }	 |# t         $ r | j                          t        j                  t
        |      }|j                          | j                  t        |       | j                  |j                  t               	  #  t        j                         d   }| j                  ||       Y Y y xY ww xY w)Nr   r      )r   r   expect_one_errorgeventspawnr   joinassert_errorassertIsInstance	exceptionr   r   assertIs)selferrorexpected_errorgexs        r   test1z
Test.test1   s    W%&'DE	)K 	)!!#UN3AFFHm^<!!!++}=))\\^A&b%(	)s"    A9CB+C CCc                 F   t        j                         j                  j                  d      }|j	                  t
               	 t        j                  d       | j                  t        j                         d       |j                          y # |j                          w xY w)Nr   g?r   )r   get_hublooptimerstartr   sleepassertEqualr   r   close)r#   r,   s     r   test2z
Test.test2.   sf     %%++A.F	LLS\\^-?@KKMEKKMs   9B B N)r   r   r	   r(   r1   r
   r   r   r   r      s    )$r   r   __main__)r   r   gevent.testingtesting	greentestr   r   r   PY2	exc_clear	Exceptionr   r   r   TestCaser   r   mainr
   r   r   <module>r;      si     
 "  =77CMMO	9 	
9 > zINN r   