Ë
    < |h+  ã                   óR   — d dl mZmZmZ d dlmZ d dlmZ ddlm	Z	  G d„ de«      Z
y)	é    )Úabsolute_importÚprint_functionÚdivision)Úcontextmanager)ÚHubé   )ÚExpectedExceptionc                   ó:   — e Zd ZdZdZefZdZed„ «       Z	d„ Z
d„ Zy)ÚQuietHubNFc              #   ób   K  — | j                   }d| _         	 d–— || _         y# || _         w xY w­w)a!  
        Code in the body of this context manager will ignore
        ``EXPECTED_TEST_ERROR`` objects reported to ``handle_error``;
        they will not get a chance to go to the hub's parent.

        This completely changes the semantics of normal error handling
        by avoiding some switches (to the main greenlet, and eventually
        once a callback is processed, back to the hub). This should be used
        in narrow ways for test compatibility for tests that assume
        ``ExpectedException`` objects behave this way.
        TN)ÚIGNORE_EXPECTED_TEST_ERROR)ÚselfÚolds     úQ/var/www/html/test/engine/venv/lib/python3.12/site-packages/gevent/testing/hub.pyÚignoring_expected_test_errorz%QuietHub.ignoring_expected_test_error"   s3   è ø€ ð ×-Ñ-ˆØ*.ˆÔ'ð	2Ûà.1ˆDÕ+ø¨cˆDÕ+üs   ‚/—# ›/£	,¬/c                 ó¨   — | j                  |||«      \  }}}| j                  rt        || j                  «      ry t	        j
                  | ||||«      S ©N)Ú_normalize_exceptionr   Ú
issubclassÚEXPECTED_TEST_ERRORr   Úhandle_error)r   ÚcontextÚtypeÚvalueÚtbs        r   r   zQuietHub.handle_error6   sR   € Ø×3Ñ3°D¸%ÀÓD‰ˆˆeRð
 ×*Ò*¬z¸$À×@XÑ@XÔ/YàÜ×Ñ  g¨t°U¸BÓ?Ð?ó    c                 ó   — | j                  |||«      \  }}}t        || j                  «      ry t        j                  | ||||«      S r   )r   r   r   r   Úprint_exception)r   r   ÚtÚvr   s        r   r   zQuietHub.print_exceptionA   sH   € Ø×,Ñ,¨Q°°2Ó6‰ˆˆ1ˆbÜa˜×1Ñ1Ô2àÜ×"Ñ" 4¨°!°Q¸Ó;Ð;r   )Ú__name__Ú
__module__Ú__qualname__Ú	_resolverÚ_threadpoolr	   r   r   r   r   r   r   © r   r   r   r      s8   „ Ø€IØ€Kà,Ð.ÐØ!&Ðàñ2ó ð2ò&	@ó<r   r   N)Ú
__future__r   r   r   Ú
contextlibr   Ú
gevent.hubr   Ú	exceptionr	   r   r&   r   r   ú<module>r+      s#   ð÷( AÑ @å %Ý å (ô+<ˆsõ +<r   