!#%,
d Z ddlZddlmZ ddlmZ dZd Z G d d e Z G d
d e Z G d de Z
d
Z G d de ZdS ) TestSuite N )case)utilTc > t | |d } | d S )Nc d S N r
;/opt/alt/python-internal/lib64/python3.11/unittest/suite.pyz!_call_if_exists.. s r )getattr)parentattrfuncs r _call_if_existsr s$ 64..DDFFFFFr c Z e Zd ZdZdZddZd Zd Zd Zd Z d Z
d
Zd Zd Z
d
Zd ZdS )
BaseTestSuitezNA simple test suite that doesn't provide class or module shared fixtures.
Tr
c L g | _ d| _ | | d S Nr )_tests_removed_testsaddTests)selftestss r __init__zBaseTestSuite.__init__ s)
er c \ dt j | j dt | dS )N)r strclass __class__listr s r __repr__zBaseTestSuite.__repr__ s+ "&-"?"?"?"?dLLr c z t || j st S t | t | k S r )
isinstancer! NotImplementedr" )r others r __eq__zBaseTestSuite.__eq__ s3 %00 "!!DzzT%[[((r c * t | j S r )iterr r# s r __iter__zBaseTestSuite.__iter__" s DK r c P | j }| D ]}|r|| z
}|S r )r countTestCases)r casestests r r. zBaseTestSuite.countTestCases% s= # / /D
/,,...r c @ t | s/t d t | t |t
r0t
|t j t f rt d | j
| d S )Nz{} is not callablezNTestCases and TestSuites must be instantiated before passing them to addTest())callable TypeErrorformatreprr&