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.py410 from _testcapi import getargs_D
411 self.assertEqual(getargs_D(4.25+0.5j), 4.25+0.5j)
412 self.assertEqual(getargs_D(4.25), 4.25+0j)
413 self.assertEqual(getargs_D(4), 4.0+0j)
414 self.assertEqual(getargs_D(Complex()), 4.25+0.5j)
415 self.assertEqual(getargs_D(ComplexSubclass(7.5+0.25j)), 7.5+0.25j)
416 self.assertEqual(getargs_D(ComplexSubclass2(7.5+0.25j)), 7.5+0.25j)
417 self.assertRaises(TypeError, getargs_D, BadComplex())
419 self.assertEqual(getargs_D(BadComplex2()), 4.25+0.5j)
420 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.c1249 getargs_D(PyObject *self, PyObject *args) in getargs_D() function
4654 {"getargs_D", getargs_D, METH_VARARGS},