Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/test/
Dtest_getargs2.py356 from _testcapi import getargs_f
357 self.assertEqual(getargs_f(4.25), 4.25)
358 self.assertEqual(getargs_f(4), 4.0)
359 self.assertRaises(TypeError, getargs_f, 4.25+0j)
360 self.assertEqual(getargs_f(Float()), 4.25)
361 self.assertEqual(getargs_f(FloatSubclass(7.5)), 7.5)
362 self.assertEqual(getargs_f(FloatSubclass2(7.5)), 7.5)
363 self.assertRaises(TypeError, getargs_f, BadFloat())
365 self.assertEqual(getargs_f(BadFloat2()), 4.25)
366 self.assertEqual(getargs_f(BadFloat3(7.5)), 7.5)
[all …]
/external/python/cpython2/Lib/test/
Dtest_getargs2.py338 from _testcapi import getargs_f
339 self.assertEqual(getargs_f(4.25), 4.25)
340 self.assertEqual(getargs_f(4), 4.0)
341 self.assertRaises(TypeError, getargs_f, 4.25+0j)
342 self.assertEqual(getargs_f(Float()), 4.25)
343 self.assertEqual(getargs_f(FloatSubclass(7.5)), 7.5)
344 self.assertEqual(getargs_f(FloatSubclass2(7.5)), 7.5)
345 self.assertRaises(TypeError, getargs_f, BadFloat())
346 self.assertEqual(getargs_f(BadFloat2()), 4.25)
347 self.assertEqual(getargs_f(BadFloat3(7.5)), 7.5)
[all …]
/external/python/cpython2/Modules/
D_testcapimodule.c1243 getargs_f(PyObject *self, PyObject *args) in getargs_f() function
2720 {"getargs_f", getargs_f, METH_VARARGS},
/external/python/cpython3/Modules/
D_testcapimodule.c1231 getargs_f(PyObject *self, PyObject *args) in getargs_f() function
4652 {"getargs_f", getargs_f, METH_VARARGS},