a :jg@s:ddlmZddlZddlZddlmZGdddZdS))assert_N)sctypesc@s4eZdZddZddZddZddZd d Zd S) TestABCcCstttjtjtttjtjtttjtjtttj tj tttj tj tttj tj tttjtj dS)N)r issubclassnpnumbernumbersNumberZinexactComplexZcomplexfloatingZfloatingRealintegerIntegralZ signedintegerZunsignedinteger)selfrD/usr/local/lib/python3.9/site-packages/numpy/_core/tests/test_abc.py test_abstract szTestABC.test_abstractcCstdD]t}tt|tj|jdtt|tj|jdtt|tj |jdtt|tj |jdqdS)Nfloatz is not instance of Realz is not subclass of Realz is instance of Rationalz is subclass of Rational)rr isinstancerr __name__rRationalrtrrr test_floatss      zTestABC.test_floatscCstdD]t}tt|tj|jdtt|tj|jdtt|tj |jdtt|tj |jdqdS)Ncomplexz 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|jdtt|tj|jdqdS)Nint is not instance of Integral is not subclass of Integralrrrrr rrrrrrtest_int*s    zTestABC.test_intcCsHtdD]:}tt|tj|jdtt|tj|jdqdS)NZuintrrrrrrr test_uint1s    zTestABC.test_uintN)r __module__ __qualname__rrrrr rrrrrs    r)Z numpy.testingrrnumpyrZnumpy._core.numerictypesrrrrrrs