zmc
2023-10-12 ed135d79df12a2466b52dae1a82326941211dcc9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
U
O±dâã@s:ddlmZddlZddlZddlmZGdd„dƒZdS)é)Úassert_N)Úsctypesc@s4eZdZdd„Zdd„Zdd„Zdd„Zd    d
„Zd S) ÚTestABCcCs‚tttjtjƒƒtttjtjƒƒtttjtjƒƒtttj    tj
ƒƒtttj tj ƒƒtttj tj ƒƒtttjtj ƒƒdS)N)rÚ
issubclassÚnpÚnumberÚnumbersÚNumberZinexactÚComplexZcomplexfloatingZfloatingÚRealÚintegerÚIntegralZ signedintegerZunsignedinteger)Úself©rúPd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\numpy/core/tests/test_abc.pyÚ test_abstract    szTestABC.test_abstractcCs‚tdD]t}tt|ƒtjƒ|j›dƒtt|tjƒ|j›dƒtt|ƒtjƒ |j›dƒtt|tjƒ |j›dƒqdS)NÚfloatz is not instance of Realz is not subclass of Realz is instance of Rationalz is subclass of Rational)rrÚ
isinstancerr Ú__name__rÚRational©rÚtrrrÚ test_floatss 
ÿ 
ÿ
ÿ
ÿzTestABC.test_floatscCs‚tdD]t}tt|ƒtjƒ|j›dƒtt|tjƒ|j›dƒtt|ƒtjƒ |j›dƒtt|tjƒ |j›dƒqdS)NÚcomplexz is not instance of Complexz is not subclass of Complexz is instance of Realz is subclass of Real)rrrrr
rrr rrrrÚ test_complexs 
ÿ 
ÿ
ÿ
ÿzTestABC.test_complexcCsHtdD]:}tt|ƒtjƒ|j›dƒtt|tjƒ|j›dƒqdS)NÚintú is not instance of Integralú is not subclass of Integral©rrrrr rrrrrrÚtest_int*s 
ÿ 
ÿzTestABC.test_intcCsHtdD]:}tt|ƒtjƒ|j›dƒtt|tjƒ|j›dƒqdS)NZuintrrrrrrrÚ    test_uint1s 
ÿ 
ÿzTestABC.test_uintN)rÚ
__module__Ú __qualname__rrrrr rrrrrs
   r)Z numpy.testingrrÚnumpyrZnumpy.core.numerictypesrrrrrrÚ<module>s