e#`SrSSKrSSKrSSKrSSKJr SSKJr SrSr Sr S r "S S \ 5r g) zTest result objectN)utilwrapsTc0^[T5U4Sj5nU$)Nc`>[USS5(aUR5 T"U/UQ70UD6$)NfailfastF)getattrstop)selfargskwmethods 5/opt/imh/python3.13/lib/python3.13/unittest/result.pyinnerfailfast..inner s0 4U + + IIKd(T(R((r)rrs` rr r s  6])) Lrz Stdout: %sz Stderr: %sc\rSrSrSrSrSrSrSSjrSr Sr Sr S r S r S rS r\S 5r\S5rSrSrSrSr\S5rSrSrSrSrSrSrSrSrSr g) TestResultaHolder for test result information. Test results are automatically managed by the TestCase and TestSuite classes, and do not need to be explicitly manipulated by writers of tests. Each instance holds the total number of tests run, and collections of failures and errors that occurred among those test runs. The collections contain tuples of (testcase, exceptioninfo), where exceptioninfo is the formatted traceback of the error that occurred. NFcSUl/Ul/UlSUl/Ul/Ul/Ul/UlSUlSUl SUl SUl SUl [RUl[R UlSUlg)NFr)r failureserrorstestsRunskippedexpectedFailuresunexpectedSuccessescollectedDurations shouldStopbuffer tb_locals_stdout_buffer_stderr_buffersysstdout_original_stdoutstderr_original_stderr _mirrorOutput)r stream descriptions verbositys r__init__TestResult.__init__&s     "#% "$ "" #  # "rcg)z#Called by TestRunner after test runNr s r printErrorsTestResult.printErrors8rc\U=RS- slSUlUR5 g)z-Called when the given test is about to be runrFN)rr) _setupStdoutr tests r startTestTestResult.startTest;s$  " rcUR(alURc4[R"5Ul[R"5UlUR[ lUR[ lgg)N)r r#ioStringIOr"r$r%r'r1s rr6TestResult._setupStdoutAsP ;;""*&(kkm#&(kkm#,,CJ,,CJ rcg)z`Called once before any tests are executed. See startTest for a method called before each test. Nr0r1s r startTestRunTestResult.startTestRunIr4rc2UR5 SUlg)z'Called when the given test has been runFN)_restoreStdoutr)r7s rstopTestTestResult.stopTestOs "rcUR(GajUR(a[RR 5n[R R 5nU(a=UR S5(dUS- nURR[U-5 U(a=UR S5(dUS- nURR[U-5 UR[lUR[lURRS5 URR5 URRS5 URR5 gg)N r)r r)r$r%getvaluer'endswithr&write STDOUT_LINEr( STDERR_LINEr"seektruncater#)r outputerrors rrCTestResult._restoreStdoutTs  ;;;!!,,. ++-!??400$))// f0DE >>$// ))// e0CD..CJ..CJ    $ $Q '    ( ( *    $ $Q '    ( ( *% rcg)z]Called once after all tests are executed. See stopTest for a method called after each test. Nr0r1s r stopTestRunTestResult.stopTestRunir4rchURRXRX!545 SUlg)z]Called when an error has occurred. 'err' is a tuple of values as returned by sys.exc_info(). TN)rappend_exc_info_to_stringr)r r8errs raddErrorTestResult.addErroros, D":":3"EFG!rchURRXRX!545 SUlg)z\Called when an error has occurred. 'err' is a tuple of values as returned by sys.exc_info().TN)rrVrWr)rXs r addFailureTestResult.addFailurews, d$<$Converts a sys.exc_info()-style tuple of values into a string.T)capture_localscompactrG)_clean_tracebacks tracebackTracebackExceptionr!listformatr r$r%rHr'rIrVrKrLjoin) r rYr8exctypevaluetbtb_emsgLinesrOrPs rrWTestResult._exc_info_to_strings   # #GB =++ B>>49 & ;;ZZ((*FJJ'')Et,,dNF f 45~~d++TME e 34wwx  rc\SnSnXU4/n[U51nU(GaUR5upnU(aAURU5(a+URnU(aURU5(aM+XRLaUR U5 U(aUnSnOX2lUbuURUR4HYn U cM[U 5U;dMUR[U 5XR 45 UR[U 55 M[ U(aGMU$)NTF) idpop_is_relevant_tb_leveltb_nextra_remove_unittest_tb_frames __traceback__ __cause__ __context__rVtypeadd) r rrrr8retfirstexcsseencs rrTestResult._clean_tracebackss$%5 {#'88: WR33B77ZZ33B77/////3&(# //5+<+<=A}Ad): T!Wa$ABA>#d* rc4SURR;$)N __unittest)tb_frame f_globals)r rs rr TestResult._is_relevant_tb_levelsr{{4444rcSnU(aCURU5(d-UnURnU(aURU5(dM-UbSUlgg)zTruncates usercode tb at the first unittest frame. If the first frame of the traceback is in user code, the prefix up to the first unittest frame is returned. If the first frame is already in the unittest module, the traceback is not modified. N)rr)r rprevs rr%TestResult._remove_unittest_tb_framessS33B77DB33B77  DL rcS[R"UR5UR[ UR 5[ UR 54-$)Nz!<%s run=%i errors=%i failures=%i>)rstrclass __class__rryrrr1s r__repr__TestResult.__repr__sA3 dnn-t}}c$++>NDMM"$$ %r)r)r(r&r#r"r rrrr rrrr!rr)NNN)!__name__ __module__ __qualname____firstlineno____doc___previousTestClass_testRunEntered_moduleSetUpFailedr-r2r9r6r@rDrCrSr rZr]rcrfrjrmrprvrzr rWrrrr__static_attributes__r0rrrrs O#$. - # +* """" &" ,9 .. A6!,85  %rr)rr<r$rrr functoolsrrr rKrLobjectrr0rrrs;     h%h%r