403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.9/site-packages/_pytest/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/_pytest/__pycache__/unraisableexception.cpython-39.pyc
a

05dw�@s�ddlZddlZddlZddlmZddlmZddlmZddlmZddlm	Z	ddlm
Z
ddlZGdd	�d	�Zed
d�dd
�Z
ejddd�ed
d�dd��Zejddd�ed
d�dd��Zejddd�ed
d�dd��ZdS)�N)�
TracebackType)�Any)�Callable)�	Generator)�Optional)�Typec@s`eZdZdZdd�dd�Zddd�dd	�Zdd�d
d�Zeee	ee	ee
dd�d
d�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)
    N��returncCsd|_d|_dS�N)�
unraisable�	_old_hook��self�r�?/usr/lib/python3.9/site-packages/_pytest/unraisableexception.py�__init__$sz#catch_unraisable_exception.__init__zsys.UnraisableHookArgs)rr
cCs
||_dSr)r)rrrrr�_hook(sz catch_unraisable_exception._hookcCstj|_|jt_|Sr)�sys�unraisablehookr
rrrrr�	__enter__-sz$catch_unraisable_exception.__enter__)�exc_type�exc_val�exc_tbr
cCs$|jdusJ�|jt_d|_|`dSr)r
rrr)rrrrrrr�__exit__2sz#catch_unraisable_exception.__exit__)�__name__�
__module__�__qualname__�__doc__rrrrr�
BaseExceptionrrrrrrrs
�r)NNNr	c	cs�t��~}dV|jrv|jjdur*|jj}nd}|�d|jj�d�}|d�t�|jj|jj|jj	��7}t
�t�
|��Wd�n1s�0YdS)NzException ignored inz: z

�)rr�err_msg�object�join�	traceback�format_exceptionr�	exc_value�
exc_traceback�warnings�warn�pytestZ PytestUnraisableExceptionWarning)�cmr!�msgrrr�!unraisable_exception_runtest_hook>s
��r-T)ZhookwrapperZtryfirstccst�EdHdSr�r-rrrr�pytest_runtest_setupQsr/ccst�EdHdSrr.rrrr�pytest_runtest_callVsr0ccst�EdHdSrr.rrrr�pytest_runtest_teardown[sr1)rr$r(�typesr�typingrrrrrr*rr-Zhookimplr/r0r1rrrr�<module>s"/

Youez - 2016 - github.com/yon3zu
LinuXploit