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__/threadexception.cpython-39.pyc
a

05dc�@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_threading_exceptiona�Context manager catching threading.Thread exception using
    threading.excepthook.

    Storing exc_value using a custom hook can create a reference cycle. The
    reference cycle is broken explicitly when the context manager exits.

    Storing thread using a custom hook can resurrect it if it is set to an
    object which is being finalized. Exiting the context manager clears the
    stored object.

    Usage:
        with threading_helper.catch_threading_exception() as cm:
            # code spawning a thread which raises an exception
            ...
            # check the thread exception: use cm.args
            ...
        # cm.args attribute no longer exists at this point
        # (to break a reference cycle)
    N��returncCsd|_d|_dS�N)�args�	_old_hook��self�r�;/usr/lib/python3.9/site-packages/_pytest/threadexception.py�__init__$sz"catch_threading_exception.__init__zthreading.ExceptHookArgs)rr
cCs
||_dSr)r)rrrrr�_hook(szcatch_threading_exception._hookcCstj|_|jt_|Sr)�	threading�
excepthookr
rrrrr�	__enter__+sz#catch_threading_exception.__enter__)�exc_type�exc_val�exc_tbr
cCs$|jdusJ�|jt_d|_|`dSr)r
rrr)rrrrrrr�__exit__0sz"catch_threading_exception.__exit__)�__name__�
__module__�__qualname__�__doc__rrrrr�
BaseExceptionrrrrrrrs
�r)NNNr	c	cs�t��v}dV|jrn|jjdur$dn|jjj}d|�d�}|d�t�|jj|jj|jj	��7}t
�t�
|��Wd�n1s�0YdS)Nz	<unknown>zException in thread z

�)rr�thread�name�join�	traceback�format_exceptionr�	exc_value�
exc_traceback�warnings�warn�pytestZ%PytestUnhandledThreadExceptionWarning)�cmZthread_name�msgrrr�thread_exception_runtest_hook<s��r-T)�hookwrapperZtrylastccst�EdHdSr�r-rrrr�pytest_runtest_setupLsr0)r.Ztryfirstccst�EdHdSrr/rrrr�pytest_runtest_callQsr1ccst�EdHdSrr/rrrr�pytest_runtest_teardownVsr2)rr$r(�typesr�typingrrrrrr*rr-Zhookimplr0r1r2rrrr�<module>s"-

Youez - 2016 - github.com/yon3zu
LinuXploit