%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/twisted/trial/_dist/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/twisted/trial/_dist/__pycache__/distreporter.cpython-312.pyc

�

Ϫ�fP
���dZddlmZddlmZmZmZddlmZddl	m
Z
ddlmZddl
mZmZeeeeeeffZee�Gd	�d
e
e���Zy)z�
The reporter is not made to support concurrent test running, so we will
hold test results in here and only send them to the reporter once the
test is over.

@since: 12.3
�)�
TracebackType)�Optional�Tuple�Union)�implementer)�proxyForInterface)�Failure�)�	IReporter�	ITestCasec	���eZdZdZ�fd�Zd�Zdededdfd�Zded	eddfd
�Z	d�Z
dd�Z	dded	ed
ee
ddfd�Zd�Zd�Z�xZS)�DistReporterz
    See module docstring.
    c�2��t�|�|�i|_y�N)�super�__init__�running)�self�original�	__class__s  ��B/usr/lib/python3/dist-packages/twisted/trial/_dist/distreporter.pyrzDistReporter.__init__ s���
����"����c���g|j|j�<|j|j�j|jj|f�y)z&
        Queue test starting.
        N)r�id�appendr�	startTest�r�tests  rrzDistReporter.startTest$sD��#%����T�W�W�Y�����T�W�W�Y��&�&��
�
�(?�(?��'F�Grr�fail�returnNc��|j|j�j|jj||f�y)z)
        Queue adding a failure.
        N)rrrr�
addFailure)rrrs   rr"zDistReporter.addFailure+s2��	
���T�W�W�Y��&�&��
�
�(@�(@�$��'M�Nr�errorc��|j|j�j|jj||f�y)z%
        Queue error adding.
        N)rrrr�addError)rrr#s   rr%zDistReporter.addError1s2��	
���T�W�W�Y��&�&��
�
�(>�(>��e�'L�Mrc��|j|j�j|jj||f�y)z&
        Queue adding a skip.
        N)rrrr�addSkip)rr�reasons   rr'zDistReporter.addSkip7s2��	
���T�W�W�Y��&�&��
�
�(=�(=�t�V�'L�Mrc��|j|j�j|jj||f�y)z5
        Queue adding an unexpected success.
        N)rrrr�addUnexpectedSuccess)rr�todos   rr*z!DistReporter.addUnexpectedSuccess=s3��	
���T�W�W�Y��&�&��
�
�(J�(J�D�RV�'W�Xrr+c��|j|j�j|jj|||f�y)z3
        Queue adding an expected failure.
        N)rrrr�addExpectedFailure)rrr#r+s    rr-zDistReporter.addExpectedFailureCs7��	
���T�W�W�Y��&�&�
�]�]�
-�
-�t�U�D�A�	
rc��|j|j�j|jj|f�y)z)
        Queue adding a success.
        N)rrrr�
addSuccessrs  rr/zDistReporter.addSuccessMs0��	
���T�W�W�Y��&�&��
�
�(@�(@�$�'G�Hrc��|j|j�j|jj|f�|j|j�D]
}|d|dd��|j|j�=y)zA
        Queue stopping the test, then unroll the queue.
        r�N)rrrr�stopTest)rr�steps   rr2zDistReporter.stopTestSst��	
���T�W�W�Y��&�&��
�
�(>�(>��'E�F��L�L�����+�	�D��D��G�T�!�"�X��	��L�L�����#rr)�__name__�
__module__�__qualname__�__doc__rrr�ReporterFailurer"r%r'r*r�strr-r/r2�
__classcell__)rs@rrrs������H�O�y�O��O�D�O�N�Y�N��N�4�N�N�Y�NR�
��
�&5�
�=E�c�]�
�	
�
�I�$rrN)r7�typesr�typingrrr�zope.interfacer�twisted.python.componentsr�twisted.python.failurer	�itrialrr�type�	Exceptionr8r�rr�<module>rDsb��� �)�)�&�7�*�)����t�Y�
�'E�!F�F�G��
�Y��?$�$�Y�/�?$��?$r

Zerion Mini Shell 1.0