o 6˜¿a ã@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ÚNumberÚinexactÚComplexÚcomplexfloatingÚfloatingÚRealÚintegerÚIntegralÚ signedintegerÚunsignedinteger)Úself©rú;/usr/lib/python3/dist-packages/numpy/core/tests/test_abc.pyÚ test_abstract szTestABC.test_abstractcCó‚tdD]:}tt|ƒtjƒd |j¡ƒtt|tjƒd |j¡ƒtt|ƒtjƒ d |j¡ƒtt|tjƒ d |j¡ƒqdS)NÚfloatz{0} is not instance of Realz{0} is not subclass of Realz{0} is instance of Rationalz{0} is subclass of Rational) rrÚ isinstancerrÚformatÚ__name__rÚRational©rÚtrrrÚ test_floatsó  ÿ  ÿ ÿ ÿùzTestABC.test_floatscCr)NÚcomplexz{0} is not instance of Complexz{0} is not subclass of Complexz{0} is instance of Realz{0} is subclass of Real) rrrrr rrrrrrrrÚ test_complexr zTestABC.test_complexcCóHtdD]}tt|ƒtjƒd |j¡ƒtt|tjƒd |j¡ƒqdS)NÚintú{0} is not instance of Integralú{0} is not subclass of Integral©rrrrrrrrrrrrÚtest_int*ó  ÿ  ÿýzTestABC.test_intcCr#)NÚuintr%r&r'rrrrÚ test_uint1r)zTestABC.test_uintN)rÚ __module__Ú __qualname__rrr"r(r+rrrrrs    r)Ú numpy.testingrrÚnumpyrÚnumpy.core.numerictypesrrrrrrÚs