§ |<ˆjw ã óx — d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZ d dlmZ d dlm Z d dlm Z d dlZ G d„ d ¦ « Zd ed fd„Z ej d d ¬¦ « d ed fd„¦ « Z ej d d ¬¦ « d ed fd„¦ « Z ej d d ¬¦ « d ed fd„¦ « ZdS )é N)Ú TracebackType)ÚAny)ÚCallable)Ú Generator)ÚOptional)ÚTypec ór — e Zd ZdZd d„Zdd„Zdd„Zd eee d ee dee ddfd„ZdS )Úcatch_unraisable_exceptionaà Context manager catching unraisable exception using sys.unraisablehook. Storing the exception value (cm.unraisable.exc_value) creates a reference cycle. The reference cycle is broken explicitly when the context manager exits. Storing the object (cm.unraisable.object) can resurrect it if it is set to an object which is being finalized. Exiting the context manager clears the stored object. Usage: with catch_unraisable_exception() as cm: # code creating an "unraisable exception" ... # check the unraisable exception: use cm.unraisable ... # cm.unraisable attribute no longer exists at this point # (to break a reference cycle) ÚreturnNc ó" — d | _ d | _ d S ©N)Ú unraisableÚ _old_hook©Úselfs úm/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/_pytest/unraisableexception.pyÚ__init__z#catch_unraisable_exception.__init__$ s € Ø>BˆŒØNRˆŒˆˆó r úsys.UnraisableHookArgsc ó — || _ d S r )r )r r s r Ú_hookz catch_unraisable_exception._hook( s € ð %ˆŒˆˆr c óJ — t j | _ | j t _ | S r )ÚsysÚunraisablehookr r r s r Ú __enter__z$catch_unraisable_exception.__enter__- s € ÝÔ+ˆŒØ!œZ�ÔØˆr Úexc_typeÚexc_valÚexc_tbc óL — | j €J ‚| j t _ d | _ | `d S r )r r r r )r r r r s r Ú__exit__z#catch_unraisable_exception.__exit__2 s, € ð Œ~Ð)Ð)Ð)Ø!œ^�ÔØˆŒØˆOˆOˆOr )r N)r r r N)r r )Ú__name__Ú __module__Ú__qualname__Ú__doc__r r r r r Ú BaseExceptionr r © r r r r s¬ € € € € € ðð ð(Sð Sð Sð Sð%ð %ð %ð %ð ð ð ð ð à˜4 Ô.Ô/ð ð ˜-Ô(ð ð ˜Ô'ð ð ð ð ð ð ð ð r r r )NNNc # ó¨ K — t ¦ « 5 } d V — | j r�| j j � | j j }nd}|› d| j j ›d�}|d t j | j j | j j | j j ¦ « ¦ « z }t j t j |¦ « ¦ « d d d ¦ « d S # 1 swxY w Y d S )NzException ignored inz: z Ú )r r Úerr_msgÚobjectÚjoinÚ tracebackÚformat_exceptionr Ú exc_valueÚ exc_tracebackÚwarningsÚwarnÚpytestÚ PytestUnraisableExceptionWarning)Úcmr) Úmsgs r Ú!unraisable_exception_runtest_hookr6 > s0 è è € Ý #Ñ %Ô %ð H¨Ø ˆˆˆØ Œ=ð HØŒ}Ô$Ð0Øœ-Ô/��à0�ØÐ<Ð< ¤ Ô 4Ð<Ð<Ð<ˆCØ�2—7’7ÝÔ*Ø”MÔ*Ø”MÔ+Ø”MÔ/ñô ñô ñ ˆCõ ŒM�&ÔAÀ#ÑFÔFÑGÔGÐGðHð Hð Hñ Hô Hð Hð Hð Hð Hð Hð Hð Høøøð Hð Hð Hð Hð Hð Hs ‘B)CÃCÃCT)ÚhookwrapperÚtryfirstc # ó2 K — t ¦ « E d {V —† d S r ©r6 r&