Home
last modified time | relevance | path

Searched refs:getargs_D (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_getargs2.py384 from _testcapi import getargs_D
385 self.assertEqual(getargs_D(4.25+0.5j), 4.25+0.5j)
386 self.assertEqual(getargs_D(4.25), 4.25+0j)
387 self.assertEqual(getargs_D(4), 4.0+0j)
388 self.assertEqual(getargs_D(Complex()), 4.25+0.5j)
389 self.assertEqual(getargs_D(ComplexSubclass(7.5+0.25j)), 7.5+0.25j)
390 self.assertEqual(getargs_D(ComplexSubclass2(7.5+0.25j)), 7.5+0.25j)
391 self.assertRaises(TypeError, getargs_D, BadComplex())
392 self.assertEqual(getargs_D(BadComplex2()), 4.25+0.5j)
393 self.assertEqual(getargs_D(BadComplex3(7.5+0.25j)), 7.5+0.25j)
[all …]
/external/python/cpython3/Lib/test/
Dtest_getargs2.py493 from _testcapi import getargs_D
494 self.assertEqual(getargs_D(4.25+0.5j), 4.25+0.5j)
495 self.assertEqual(getargs_D(4.25), 4.25+0j)
496 self.assertEqual(getargs_D(4), 4.0+0j)
497 self.assertEqual(getargs_D(Complex()), 4.25+0.5j)
498 self.assertEqual(getargs_D(ComplexSubclass(7.5+0.25j)), 7.5+0.25j)
499 self.assertEqual(getargs_D(ComplexSubclass2(7.5+0.25j)), 7.5+0.25j)
500 self.assertRaises(TypeError, getargs_D, BadComplex())
502 self.assertEqual(getargs_D(BadComplex2()), 4.25+0.5j)
503 self.assertEqual(getargs_D(BadComplex3(7.5+0.25j)), 7.5+0.25j)
[all …]
/external/python/cpython2/Modules/
D_testcapimodule.c1261 getargs_D(PyObject *self, PyObject *args) in getargs_D() function
2722 {"getargs_D", getargs_D, METH_VARARGS},
/external/python/cpython3/Modules/
D_testcapimodule.c1414 getargs_D(PyObject *self, PyObject *args) in getargs_D() function
5722 {"getargs_D", getargs_D, METH_VARARGS},