HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib/python3/dist-packages/twisted/trial/_dist/__pycache__/distreporter.cpython-38.pyc
U


W[�	�@sHdZddlmZddlmZddlmZee�Gdd�dee���ZdS)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
�)�implementer)�	IReporter)�proxyForInterfacecsdeZdZdZ�fdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
d�Z	ddd�Z
dd�Zdd�Z�Z
S)�DistReporterz
    See module docstring.
    cstt|��|�i|_dS)N)�superr�__init__�running)�self�original��	__class__��B/usr/lib/python3/dist-packages/twisted/trial/_dist/distreporter.pyrszDistReporter.__init__cCs.g|j|��<|j|���|jj|f�dS)z&
        Queue test starting.
        N)r�id�appendr
�	startTest�r	�testr
r
rrszDistReporter.startTestcCs"|j|���|jj||f�dS)z)
        Queue adding a failure.
        N)rrrr
�
addFailure)r	rZfailr
r
rr's�zDistReporter.addFailurecCs"|j|���|jj||f�dS)z%
        Queue error adding.
        N)rrrr
�addError)r	r�errorr
r
rr/s�zDistReporter.addErrorcCs"|j|���|jj||f�dS)z&
        Queue adding a skip.
        N)rrrr
�addSkip)r	r�reasonr
r
rr7s�zDistReporter.addSkipNcCs"|j|���|jj||f�dS)z5
        Queue adding an unexpected success.
        N)rrrr
�addUnexpectedSuccess)r	r�todor
r
rr?s�z!DistReporter.addUnexpectedSuccesscCs$|j|���|jj|||f�dS)z5
        Queue adding an unexpected failure.
        N)rrrr
�addExpectedFailure)r	rrrr
r
rrGs
�zDistReporter.addExpectedFailurecCs |j|���|jj|f�dS)z)
        Queue adding a success.
        N)rrrr
�
addSuccessrr
r
rrOszDistReporter.addSuccesscCsT|j|���|jj|f�|j|��D]}|d|dd��q*|j|��=dS)zA
        Queue stopping the test, then unroll the queue.
        r�N)rrrr
�stopTest)r	r�stepr
r
rrVszDistReporter.stopTest)N)N)�__name__�
__module__�__qualname__�__doc__rrrrrrrrr�
__classcell__r
r
rrrs

rN)r#Zzope.interfacerZtwisted.trial.itrialrZtwisted.python.componentsrrr
r
r
r�<module>s