$25 GRAYBYTE WORDPRESS FILE MANAGER $74

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python310/lib64/python3.10/unittest/__pycache__/

HOME
Current File : /opt/alt/python310/lib64/python3.10/unittest/__pycache__//suite.cpython-310.opt-1.pyc
o

���h�4�@s|dZddlZddlmZddlmZdZdd�ZGd	d
�d
e�ZGdd�de�Z	Gdd
�d
e�Z
dd�ZGdd�de�ZdS)�	TestSuite�N�)�case)�utilTcCst||dd��}|�dS)NcS�dS�N�rrr�5/opt/alt/python310/lib64/python3.10/unittest/suite.py�<lambda>sz!_call_if_exists.<locals>.<lambda>)�getattr)�parent�attr�funcrrr	�_call_if_existss
rc@sneZdZdZdZddd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�ZdS)�
BaseTestSuitezNA simple test suite that doesn't provide class or module shared fixtures.
    TrcCsg|_d|_|�|�dS�Nr)�_tests�_removed_tests�addTests)�self�testsrrr	�__init__szBaseTestSuite.__init__cCsdt�|j�t|�fS)Nz
<%s tests=%s>)r�strclass�	__class__�list�rrrr	�__repr__szBaseTestSuite.__repr__cCs t||j�stSt|�t|�kSr)�
isinstancer�NotImplementedr)r�otherrrr	�__eq__szBaseTestSuite.__eq__cCs
t|j�Sr)�iterrrrrr	�__iter__"�
zBaseTestSuite.__iter__cCs$|j}|D]
}|r||��7}q|Sr)r�countTestCases)r�cases�testrrr	r$%s�zBaseTestSuite.countTestCasescCsLt|�s
td�t|����t|t�rt|tjt	f�rtd��|j
�|�dS)Nz{} is not callablezNTestCases and TestSuites must be instantiated before passing them to addTest())�callable�	TypeError�format�reprr�type�
issubclassrZTestCaserr�append�rr&rrr	�addTest,s�zBaseTestSuite.addTestcCs*t|t�r	td��|D]}|�|�qdS)Nz0tests must be an iterable of tests, not a string)r�strr(r/)rrr&rrr	r6s

�zBaseTestSuite.addTestscCs:t|�D]\}}|jr|S||�|jr|�|�q|Sr)�	enumerate�
shouldStop�_cleanup�_removeTestAtIndex)r�result�indexr&rrr	�run<s�
�zBaseTestSuite.runcCsNz|j|}Wn
tyYdSwt|d�r |j|��7_d|j|<dS)z2Stop holding a reference to the TestCase at index.r$N)rr(�hasattrrr$)rr6r&rrr	r4Es�
z BaseTestSuite._removeTestAtIndexcOs|j|i|��Sr�r7)r�args�kwdsrrr	�__call__SszBaseTestSuite.__call__cCs|D]}|��qdS)�7Run the tests without collecting errors in a TestResultN)�debugr.rrr	r>Vs
�zBaseTestSuite.debugN)r)�__name__�
__module__�__qualname__�__doc__r3rrr r"r$r/rr7r4r<r>rrrr	rs

	rc@sbeZdZdZddd�Zdd�Zdd�Zd	d
�Zdd�Z	
ddd�Z		
ddd�Z
dd�Zdd�Zd
S)ra�A 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.
    FcCs�d}t|dd�durd|_}t|�D]D\}}|jrn<t|�rD|�||�|�||�|�||�|j|_	t|jdd�sCt|dd�rDq|sK||�n|�
�|jrW|�|�q|rh|�d|�|�
|�d|_|S)NF�_testRunEnteredT�_classSetupFailed�_moduleSetUpFailed)rrCr1r2�_isnotsuite�_tearDownPreviousClass�_handleModuleFixture�_handleClassSetUpr�_previousTestClassr>r3r4�_handleModuleTearDown)rr5r>ZtopLevelr6r&rrr	r7fs4

�

�
z
TestSuite.runcCst�}|�|d�dS)r=TN)�_DebugResultr7)rr>rrr	r>�szTestSuite.debugcCstt|dd�}|j}||krdS|jrdSt|dd�rdSd}zd|_Wn	ty,Ynwt|dd�}t|dd�}|dur�t|d�zoz|�Wn6ty~}z*t|t�rV�d}zd|_Wn	tyfYnwt	�
|�}	|�||d|	�WYd}~nd}~ww|r�|dur�|�|jD]}
|j||
dd|	|
d	�q�Wt|d
�dSWt|d
�dSWt|d
�dSt|d
�wdS)NrJ�__unittest_skip__F�
setUpClass�doClassCleanups�_setupStdoutTr��info�_restoreStdout)
rrrErDr(r�	ExceptionrrLrr�"_createClassOrModuleLevelException�tearDown_exceptions)rr&r5�
previousClass�currentClassZfailedrNrO�e�	className�exc_inforrr	rI�sf
�



�
���
�����zTestSuite._handleClassSetUpcCs"d}t|dd�}|dur|j}|S)NrJ)rr@)rr5�previousModulerWrrr	�_get_previous_module�s
zTestSuite._get_previous_modulec
CsL|�|�}|jj}||krdS|�|�d|_ztj|}Wn
ty(YdSwt|dd�}|dur�t	|d�zez|�Wn#t
ya}zt|t�rL�d|_|�
||d|�WYd}~nd}~ww|jr�zt��Wn"t
y�}z|�
||d|�WYd}~nd}~wwWt	|d�dSWt	|d�dSWt	|d�dSt	|d�wdS)NF�setUpModulerPTrS)r]rr@rKrE�sys�modules�KeyErrorrrrTrrLrUr�doModuleCleanups)rr&r5r\Z
currentModule�moduler^rYrrr	rH�sX

�


����������zTestSuite._handleModuleFixtureNcCs$|�d|�d�}|�||||�dS)Nz (�))�_addClassOrModuleLevelException)rr5�excZmethod_namerrR�	errorNamerrr	rU�sz,TestSuite._createClassOrModuleLevelExceptioncCsbt|�}t|dd�}|durt|tj�r||t|��dS|s)|�|t���dS|�||�dS)N�addSkip)	�_ErrorHolderrrrZSkipTestr0ZaddErrorr_r[)rr5Z	exceptionrgrR�errorrhrrr	re�sz)TestSuite._addClassOrModuleLevelExceptionc
Cs*|�|�}|durdS|jrdSztj|}Wn
ty!YdSwt|d�zgt|dd�}|durXz|�Wn tyW}zt|t	�rE�|�
||d|�WYd}~nd}~wwzt��Wn ty~}zt|t	�rl�|�
||d|�WYd}~n
d}~wwWt|d�dSWt|d�dSt|d�w)NrP�tearDownModulerS)
r]rEr_r`rarrrTrrLrUrrb)rr5r\rcrkrYrrr	rK�sP
�


���
�����zTestSuite._handleModuleTearDownc

Csft|dd�}|j}||ks|durdSt|dd�rdSt|dd�r#dSt|dd�r+dSt|dd�}t|dd�}|durA|durAdSt|d�zf|durvz|�Wn%tyu}zt|t�r^�t�|�}|�||d|�WYd}~nd}~ww|dur�|�|j	D]$}	t|t�r�|	d	�t�|�}|j||	d	d||	d
�q�Wt|d�dSWt|d�dSt|d�w)NrJrDFrErM�
tearDownClassrOrPrrQrS)
rrrrTrrLrrrUrV)
rr&r5rWrXrlrOrYrZr[rrr	rGsX



���


���	z TestSuite._tearDownPreviousClass)Fr)
r?r@rArBr7r>rIr]rHrUrerKrGrrrr	r\s
	!.&
�
�#c@sTeZdZdZdZdd�Zdd�Zdd�Zd	d
�Zdd�Z	d
d�Z
dd�Zdd�ZdS)riz�
    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)rrnrrr	rTr#z_ErrorHolder.__init__cCs|jSrrmrrrr	�idWsz_ErrorHolder.idcCrrrrrrr	�shortDescriptionZ�z_ErrorHolder.shortDescriptioncCsd|jfS)Nz<ErrorHolder description=%r>rmrrrr	r]sz_ErrorHolder.__repr__cCs|��Sr)rorrrr	�__str__`sz_ErrorHolder.__str__cCrrr�rr5rrr	r7csz_ErrorHolder.runcCs
|�|�Srr9rsrrr	r<hr#z_ErrorHolder.__call__cCsdSrrrrrr	r$krqz_ErrorHolder.countTestCases)
r?r@rArBZfailureExceptionrrorprrrr7r<r$rrrr	riHs	ricCs$zt|�WdStyYdSw)z?A crude way to tell apart testcases and suites with duck-typingTF)r!r()r&rrr	rFns
��rFc@seZdZdZdZdZdZdS)rLzCUsed by the TestSuite to hold previous class when running in debug.NF)r?r@rArBrJrEr2rrrr	rLws
rL)
rBr_�rrZ
__unittestr�objectrrrirFrLrrrr	�<module>sLm&	


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
10 Feb 2026 9.36 AM
root / linksafe
0755
__init__.cpython-310.opt-1.pyc
3.331 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
__init__.cpython-310.opt-2.pyc
1.615 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
__init__.cpython-310.pyc
3.331 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
__main__.cpython-310.opt-1.pyc
0.408 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
__main__.cpython-310.opt-2.pyc
0.38 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
__main__.cpython-310.pyc
0.408 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
_log.cpython-310.opt-1.pyc
2.641 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
_log.cpython-310.opt-2.pyc
2.491 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
_log.cpython-310.pyc
2.641 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
async_case.cpython-310.opt-1.pyc
4.463 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
async_case.cpython-310.opt-2.pyc
4.463 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
async_case.cpython-310.pyc
4.65 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
case.cpython-310.opt-1.pyc
47.321 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
case.cpython-310.opt-2.pyc
32.748 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
case.cpython-310.pyc
47.369 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
loader.cpython-310.opt-1.pyc
14.013 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
loader.cpython-310.opt-2.pyc
11.43 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
loader.cpython-310.pyc
14.102 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
main.cpython-310.opt-1.pyc
7.395 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
main.cpython-310.opt-2.pyc
7.229 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
main.cpython-310.pyc
7.395 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
mock.cpython-310.opt-1.pyc
77.932 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
mock.cpython-310.opt-2.pyc
58.745 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
mock.cpython-310.pyc
77.958 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
result.cpython-310.opt-1.pyc
7.866 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
result.cpython-310.opt-2.pyc
6.102 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
result.cpython-310.pyc
7.866 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
runner.cpython-310.opt-1.pyc
6.805 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
runner.cpython-310.opt-2.pyc
6.228 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
runner.cpython-310.pyc
6.805 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
signals.cpython-310.opt-1.pyc
2.216 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
signals.cpython-310.opt-2.pyc
2.216 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
signals.cpython-310.pyc
2.216 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
suite.cpython-310.opt-1.pyc
10.043 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
suite.cpython-310.opt-2.pyc
9.086 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
suite.cpython-310.pyc
10.043 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
util.cpython-310.opt-1.pyc
4.398 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
util.cpython-310.opt-2.pyc
3.727 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
util.cpython-310.pyc
4.449 KB
9 Jan 2026 2.06 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF