ϪfP dZddlmZddlmZmZmZddlmZddl m Z ddl m Z ddl mZmZee eeeeffZeeGd d e eZy ) 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)OptionalTupleUnion) implementer)proxyForInterface)Failure) IReporter ITestCasec eZdZdZfdZdZdededdfdZded eddfd Z d Z dd Z dded ed e e ddfdZdZdZxZS) DistReporterz See module docstring. c2t||i|_yN)super__init__running)selforiginal __class__s B/usr/lib/python3/dist-packages/twisted/trial/_dist/distreporter.pyrzDistReporter.__init__ s " cg|j|j<|j|jj|jj|fy)z& Queue test starting. N)ridappendr startTestrtests rrzDistReporter.startTest$sD#% TWWY TWWY&& (?(?'FGrrfailreturnNc|j|jj|jj||fy)z) Queue adding a failure. N)rrrr addFailure)rrrs rr"zDistReporter.addFailure+s2 TWWY&& (@(@$'MNrerrorc|j|jj|jj||fy)z% Queue error adding. N)rrrraddError)rrr#s rr%zDistReporter.addError1s2 TWWY&& (>(>e'LMrc|j|jj|jj||fy)z& Queue adding a skip. N)rrrraddSkip)rrreasons rr'zDistReporter.addSkip7s2 TWWY&& (=(=tV'LMrc|j|jj|jj||fy)z5 Queue adding an unexpected success. N)rrrraddUnexpectedSuccess)rrtodos rr*z!DistReporter.addUnexpectedSuccess=s3 TWWY&& (J(JDRV'WXrr+c|j|jj|jj|||fy)z3 Queue adding an expected failure. N)rrrraddExpectedFailure)rrr#r+s rr-zDistReporter.addExpectedFailureCs7 TWWY&& ]] - -tUD A rc|j|jj|jj|fy)z) Queue adding a success. N)rrrr addSuccessrs rr/zDistReporter.addSuccessMs0 TWWY&& (@(@$'GHrc|j|jj|jj|f|j|jD] }|d|dd|j|j=y)zA Queue stopping the test, then unroll the queue. rN)rrrrstopTest)rrsteps rr2zDistReporter.stopTestSst TWWY&& (>(>'EFLL+ D DGT!"X   LL #rr)__name__ __module__ __qualname____doc__rrr ReporterFailurer"r%r'r*rstrr-r/r2 __classcell__)rs@rrrsHOyOODO NYNN4N N YNR  &5 =Ec]  I $rrN)r7typesrtypingrrrzope.interfacertwisted.python.componentsrtwisted.python.failurer itrialr r type Exceptionr8rrrrDsb  ))&7*)tY 'E!FFG Y?$$Y/?$?$r