/opt/imh-python/lib/python3.9/unittest/__pycache__
NameSizeModeActions
async_case.cpython-39.opt-1.pyc41840644editdlrm
async_case.cpython-39.opt-2.pyc41840644editdlrm
async_case.cpython-39.pyc42420644editdlrm
case.cpython-39.opt-1.pyc479680644editdlrm
case.cpython-39.opt-2.pyc329840644editdlrm
case.cpython-39.pyc480170644editdlrm
loader.cpython-39.opt-1.pyc144360644editdlrm
loader.cpython-39.opt-2.pyc117510644editdlrm
loader.cpython-39.pyc145270644editdlrm
main.cpython-39.opt-1.pyc75210644editdlrm
main.cpython-39.opt-2.pyc73430644editdlrm
main.cpython-39.pyc75210644editdlrm
mock.cpython-39.opt-1.pyc779550644editdlrm
mock.cpython-39.opt-2.pyc585440644editdlrm
mock.cpython-39.pyc779820644editdlrm
result.cpython-39.opt-1.pyc73000644editdlrm
result.cpython-39.opt-2.pyc57180644editdlrm
result.cpython-39.pyc73000644editdlrm
runner.cpython-39.opt-1.pyc70750644editdlrm
runner.cpython-39.opt-2.pyc64600644editdlrm
runner.cpython-39.pyc70750644editdlrm
signals.cpython-39.opt-1.pyc22510644editdlrm
signals.cpython-39.opt-2.pyc22510644editdlrm
signals.cpython-39.pyc22510644editdlrm
suite.cpython-39.opt-1.pyc101130644editdlrm
suite.cpython-39.opt-2.pyc90970644editdlrm
suite.cpython-39.pyc101130644editdlrm
util.cpython-39.opt-1.pyc43950644editdlrm
util.cpython-39.opt-2.pyc36750644editdlrm
util.cpython-39.pyc44470644editdlrm
_log.cpython-39.opt-1.pyc25320644editdlrm
_log.cpython-39.opt-2.pyc23670644editdlrm
_log.cpython-39.pyc25320644editdlrm
__init__.cpython-39.opt-1.pyc34070644editdlrm
__init__.cpython-39.opt-2.pyc16460644editdlrm
__init__.cpython-39.pyc34070644editdlrm
__main__.cpython-39.opt-1.pyc4100644editdlrm
__main__.cpython-39.opt-2.pyc3770644editdlrm
__main__.cpython-39.pyc4100644editdlrm
Edit: /opt/imh-python/lib/python3.9/unittest/__pycache__/suite.cpython-39.pyc (10113B)
a dh4@s|dZddlZddlmZddlmZdZddZGd d d eZGd ddeZ Gd d d eZ ddZ GdddeZ dS) TestSuiteN)case)utilTcCst||dd}|dS)NcSsdSNrrr//opt/imh-python/lib/python3.9/unittest/suite.py z!_call_if_exists..)getattr)parentattrfuncrrr_call_if_exists src@sneZdZdZdZdddZddZdd Zd d Zd d Z ddZ ddZ ddZ ddZ ddZddZdS) BaseTestSuitezNA simple test suite that doesn't provide class or module shared fixtures. TrcCsg|_d|_||dSNr)_tests_removed_testsaddTests)selftestsrrr__init__szBaseTestSuite.__init__cCsdt|jt|fS)Nz <%s tests=%s>)rstrclass __class__listrrrr__repr__szBaseTestSuite.__repr__cCs t||jstSt|t|kSr) isinstancerNotImplementedr)rotherrrr__eq__s zBaseTestSuite.__eq__cCs t|jSr)iterrrrrr__iter__"szBaseTestSuite.__iter__cCs$|j}|D]}|r ||7}q |Sr)rcountTestCases)rZcasestestrrrr#%s zBaseTestSuite.countTestCasescCsLt|stdt|t|tr|j|7_d|j|<dS)z2Stop holding a reference to the TestCase at index.r#N)rr&hasattrrr#)rr4r$rrrr2Es  z BaseTestSuite._removeTestAtIndexcOs|j|i|Srr5)rargskwdsrrr__call__SszBaseTestSuite.__call__cCs|D] }|qdS)7Run the tests without collecting errors in a TestResultN)debugr,rrrr<VszBaseTestSuite.debugN)r)__name__ __module__ __qualname____doc__r1rrr r"r#r-rr5r2r:r<rrrrrs   rc@s^eZdZdZdddZddZddZd d Zd d ZdddZ dddZ ddZ ddZ d S)raA test suite is a composite test consisting of a number of TestCases. For use, create an instance of TestSuite, then add test case instances. When all tests have been added, the suite can be passed to a test runner, such as TextTestRunner. It will run the individual test cases in the order in which they were added, aggregating the results. When subclassing, do not forget to call the base class constructor. FcCsd}t|dddurd|_}t|D]\}}|jr8qt|r||||||||||j|_ t|jdds&t|ddrq&|s||n| |j r&| |q&|r|d|| |d|_|S)NF_testRunEnteredT_classSetupFailed_moduleSetUpFailed)r rAr/r0 _isnotsuite_tearDownPreviousClass_handleModuleFixture_handleClassSetUpr_previousTestClassr<r1r2_handleModuleTearDown)rr3r<ZtopLevelr4r$rrrr5fs2         z TestSuite.runcCst}||ddS)r;TN) _DebugResultr5)rr<rrrr<szTestSuite.debugc CsZt|dd}|j}||krdS|jr(dSt|ddr8dSd}z d|_WntyXYn0t|dd}t|dd}|durVt|dzz |Wnlty}zTt|trd}z d|_WntyYn0t |} | ||d| WYd}~n d}~00|r<|dur<||j D]} |j || dd| | d qWt|d n t|d 0dS) NrH__unittest_skip__F setUpClassdoClassCleanups _setupStdoutTrinfo_restoreStdout) r rrCrBr&r ExceptionrrJrr"_createClassOrModuleLevelExceptiontearDown_exceptions) rr$r3 previousClass currentClassZfailedrLrMe classNameexc_inforrrrGsR                zTestSuite._handleClassSetUpcCs"d}t|dd}|dur|j}|S)NrH)r r>)rr3previousModulerUrrr_get_previous_modules  zTestSuite._get_previous_modulec Cs0||}|jj}||krdS||d|_ztj|}WntyPYdS0t|dd}|dur,t |dzz |WnFt y}z.t |t rd|_| ||d|WYd}~n d}~00|jrz tWn6t y}z| ||d|WYd}~n d}~00Wt |dn t |d0dS)NF setUpModulerNTrQ)r[rr>rIrCsysmodulesKeyErrorr rrRrrJrSrdoModuleCleanups)rr$r3rZZ currentModulemoduler\rWrrrrFsB         zTestSuite._handleModuleFixtureNcCs$|d|d}|||||dS)Nz ())_addClassOrModuleLevelException)rr3excZ method_namer rP errorNamerrrrSsz,TestSuite._createClassOrModuleLevelExceptioncCs^t|}t|dd}|dur8t|tjr8||t|n"|sN||tn |||dS)NaddSkip) _ErrorHolderr rrZSkipTestr.ZaddErrorr]rY)rr3 exceptionrerPerrorrfrrrrcs z)TestSuite._addClassOrModuleLevelExceptionc Cs||}|durdS|jr dSztj|}WntyBYdS0t|dzt|dd}|durz |Wn@ty}z(t|t r| ||d|WYd}~n d}~00z t WnBty}z(t|t rڂ| ||d|WYd}~n d}~00Wt|dn t|d0dS)NrNtearDownModulerQ) r[rCr]r^r_rr rRrrJrSrr`)rr3rZrarjrWrrrrIs@        zTestSuite._handleModuleTearDownc Cs^t|dd}|j}||ks"|dur&dSt|ddr6dSt|ddrFdSt|ddrVdSt|dd}t|dd}|dur|durdSt|dz|durz |WnJty}z2t|trt|}|||d|WYd}~n d}~00|dur@||j D]<} t|tr| d t|}|j|| d d|| d qWt|d n t|d 0dS) NrHrBFrCrK tearDownClassrMrNrrOrQ) r rrrRrrJrrrSrT) rr$r3rUrVrkrMrWrXrYrrrrEsN                z TestSuite._tearDownPreviousClass)F)N)N) r=r>r?r@r5r<rGr[rFrSrcrIrErrrrr\s !.&  #c@sTeZdZdZdZddZddZddZd d Zd d Z d dZ ddZ ddZ dS)rgz Placeholder for a TestCase inside a result. As far as a TestResult is concerned, this looks exactly like a unit test. Used to insert arbitrary errors into a test suite run. NcCs ||_dSr description)rrmrrrrTsz_ErrorHolder.__init__cCs|jSrrlrrrridWsz_ErrorHolder.idcCsdSrrrrrrshortDescriptionZsz_ErrorHolder.shortDescriptioncCs d|jfS)Nzrlrrrrr]sz_ErrorHolder.__repr__cCs|Sr)rnrrrr__str__`sz_ErrorHolder.__str__cCsdSrrrr3rrrr5csz_ErrorHolder.runcCs ||Srr7rqrrrr:hsz_ErrorHolder.__call__cCsdSrrrrrrr#ksz_ErrorHolder.countTestCases) r=r>r?r@ZfailureExceptionrrnrorrpr5r:r#rrrrrgHs rgcCs&z t|Wnty YdS0dS)z?A crude way to tell apart testcases and suites with duck-typingTF)r!r&)r$rrrrDns   rDc@seZdZdZdZdZdZdS)rJzCUsed by the TestSuite to hold previous class when running in debug.NF)r=r>r?r@rHrCr0rrrrrJwsrJ) r@r]rrZ __unittestrobjectrrrgrDrJrrrrs  Lm&