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.py363 from _testcapi import getargs_d
364 self.assertEqual(getargs_d(4.25), 4.25)
365 self.assertEqual(getargs_d(4), 4.0)
366 self.assertRaises(TypeError, getargs_d, 4.25+0j)
367 self.assertEqual(getargs_d(Float()), 4.25)
368 self.assertEqual(getargs_d(FloatSubclass(7.5)), 7.5)
369 self.assertEqual(getargs_d(FloatSubclass2(7.5)), 7.5)
370 self.assertRaises(TypeError, getargs_d, BadFloat())
371 self.assertEqual(getargs_d(BadFloat2()), 4.25)
372 self.assertEqual(getargs_d(BadFloat3(7.5)), 7.5)
[all …]
/external/python/cpython3/Lib/test/
Dtest_getargs2.py388 from _testcapi import getargs_d
389 self.assertEqual(getargs_d(4.25), 4.25)
390 self.assertEqual(getargs_d(4), 4.0)
391 self.assertRaises(TypeError, getargs_d, 4.25+0j)
392 self.assertEqual(getargs_d(Float()), 4.25)
393 self.assertEqual(getargs_d(FloatSubclass(7.5)), 7.5)
394 self.assertEqual(getargs_d(FloatSubclass2(7.5)), 7.5)
395 self.assertRaises(TypeError, getargs_d, BadFloat())
397 self.assertEqual(getargs_d(BadFloat2()), 4.25)
398 self.assertEqual(getargs_d(BadFloat3(7.5)), 7.5)
[all …]
/external/python/cpython2/Modules/
D_testcapimodule.c1252 getargs_d(PyObject *self, PyObject *args) in getargs_d() function
2721 {"getargs_d", getargs_d, METH_VARARGS},
/external/python/cpython3/Modules/
D_testcapimodule.c1240 getargs_d(PyObject *self, PyObject *args) in getargs_d() function
4653 {"getargs_d", getargs_d, METH_VARARGS},