/opt/alt/python37/lib64/python3.7/unittest/__pycache__
NameSizeModeActions
case.cpython-37.opt-1.pyc494840644editdlrm
case.cpython-37.opt-2.pyc340670644editdlrm
case.cpython-37.pyc495380644editdlrm
loader.cpython-37.opt-1.pyc141660644editdlrm
loader.cpython-37.opt-2.pyc114840644editdlrm
loader.cpython-37.pyc142730644editdlrm
main.cpython-37.opt-1.pyc74350644editdlrm
main.cpython-37.opt-2.pyc72570644editdlrm
main.cpython-37.pyc74350644editdlrm
mock.cpython-37.opt-1.pyc649430644editdlrm
mock.cpython-37.opt-2.pyc483360644editdlrm
mock.cpython-37.pyc649430644editdlrm
result.cpython-37.opt-1.pyc72490644editdlrm
result.cpython-37.opt-2.pyc56510644editdlrm
result.cpython-37.pyc72490644editdlrm
runner.cpython-37.opt-1.pyc69920644editdlrm
runner.cpython-37.opt-2.pyc63750644editdlrm
runner.cpython-37.pyc69920644editdlrm
signals.cpython-37.opt-1.pyc21910644editdlrm
signals.cpython-37.opt-2.pyc21910644editdlrm
signals.cpython-37.pyc21910644editdlrm
suite.cpython-37.opt-1.pyc92000644editdlrm
suite.cpython-37.opt-2.pyc81300644editdlrm
suite.cpython-37.pyc92000644editdlrm
util.cpython-37.opt-1.pyc44510644editdlrm
util.cpython-37.opt-2.pyc36660644editdlrm
util.cpython-37.pyc45180644editdlrm
__init__.cpython-37.opt-1.pyc30710644editdlrm
__init__.cpython-37.opt-2.pyc13100644editdlrm
__init__.cpython-37.pyc30710644editdlrm
__main__.cpython-37.opt-1.pyc4100644editdlrm
__main__.cpython-37.opt-2.pyc3770644editdlrm
__main__.cpython-37.pyc4100644editdlrm
Edit: /opt/alt/python37/lib64/python3.7/unittest/__pycache__/result.cpython-37.pyc (7249B)
B  f@s\dZddlZddlZddlZddlmZddlmZdZddZ d Z d Z Gd d d e Z dS) zTest result objectN)util)wrapsTcstfdd}|S)Ncs$t|ddr||f||S)NfailfastF)getattrstop)selfargskw)method4/opt/alt/python37/lib64/python3.7/unittest/result.pyinner s zfailfast..inner)r)r rr )r r r srz Stdout: %sz Stderr: %sc@seZdZdZdZdZdZd.ddZddZdd Z d d Z d d Z ddZ ddZ ddZeddZeddZddZddZddZddZed d!Zd"d#Zd$d%Zd&d'Zd(d)Zd*d+Zd,d-ZdS)/ 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. NFcCsbd|_g|_g|_d|_g|_g|_g|_d|_d|_d|_ d|_ d|_ t j |_t j|_d|_dS)NFr)rfailureserrorstestsRunskippedexpectedFailuresunexpectedSuccesses shouldStopbuffer tb_locals_stdout_buffer_stderr_buffersysstdout_original_stdoutstderr_original_stderr _mirrorOutput)rstreamZ descriptions verbosityr r r __init__&szTestResult.__init__cCsdS)z#Called by TestRunner after test runNr )rr r r printErrors7szTestResult.printErrorscCs |jd7_d|_|dS)z-Called when the given test is about to be runrFN)rr _setupStdout)rtestr r r startTest:szTestResult.startTestcCs8|jr4|jdkr$t|_t|_|jt_|jt_dS)N)rrioStringIOrrrr)rr r r r%@s    zTestResult._setupStdoutcCsdS)zpCalled once before any tests are executed. See startTest for a method called before each test. Nr )rr r r startTestRunHszTestResult.startTestRuncCs|d|_dS)z'Called when the given test has been runFN)_restoreStdoutr )rr&r r r stopTestNszTestResult.stopTestcCs|jr|jrltj}tj}|rF|ds6|d7}|jt ||rl|ds\|d7}|j t ||jt_|j t_|j d|j |j d|jdS)N r)rr rrgetvaluerendswithrwrite STDOUT_LINEr STDERR_LINErseektruncater)routputerrorr r r r+Ss$       zTestResult._restoreStdoutcCsdS)zmCalled once after all tests are executed. See stopTest for a method called after each test. Nr )rr r r stopTestRunhszTestResult.stopTestRuncCs"|j||||fd|_dS)zmCalled when an error has occurred. 'err' is a tuple of values as returned by sys.exc_info(). TN)rappend_exc_info_to_stringr )rr&errr r r addErrornszTestResult.addErrorcCs"|j||||fd|_dS)zdCalled when an error has occurred. 'err' is a tuple of values as returned by sys.exc_info().TN)rr8r9r )rr&r:r r r addFailurevszTestResult.addFailurecCsZ|dk rVt|ddr|t|d|jr4|j}n|j}|||||fd|_dS)zCalled at the end of a subtest. 'err' is None if the subtest ended successfully, otherwise it's a tuple of values as returned by sys.exc_info(). NrFrT) rr issubclassfailureExceptionrrr8r9r )rr&Zsubtestr:rr r r addSubTest}s zTestResult.addSubTestcCsdS)z-Called when a test has completed successfullyNr )rr&r r r addSuccessszTestResult.addSuccesscCs|j||fdS)zCalled when a test is skipped.N)rr8)rr&reasonr r r addSkipszTestResult.addSkipcCs|j||||fdS)z/Called when an expected failure/error occurred.N)rr8r9)rr&r:r r r addExpectedFailureszTestResult.addExpectedFailurecCs|j|dS)z5Called when a test was expected to fail, but succeed.N)rr8)rr&r r r addUnexpectedSuccessszTestResult.addUnexpectedSuccesscCs>t|jt|jkodknoConverts a sys.exc_info()-style tuple of values into a string.N)limitcapture_localsr-)_is_relevant_tb_leveltb_nextr>_count_relevant_tb_levels tracebackTracebackExceptionrlistformatrrrr.rr/r8r1r2join) rr:r&exctypevaluetblengthZtb_eZmsgLinesr5r6r r r r9s*         zTestResult._exc_info_to_stringcCs d|jjkS)N __unittest)tb_frame f_globals)rrUr r r rKsz TestResult._is_relevant_tb_levelcCs*d}x |r$||s$|d7}|j}qW|S)Nrr)rKrL)rrUrVr r r rMs  z$TestResult._count_relevant_tb_levelscCs&dt|j|jt|jt|jfS)Nz!<%s run=%i errors=%i failures=%i>)rZstrclass __class__rrErr)rr r r __repr__szTestResult.__repr__)NNN)__name__ __module__ __qualname____doc__Z_previousTestClassZ_testRunEnteredZ_moduleSetUpFailedr#r$r'r%r*r,r+r7rr;r<r?r@rBrCrDrGrr9rKrMr[r r r r rs2      r)r_r(rrNrJr functoolsrrWrr1r2objectrr r r r s