Lines Matching refs:getargs_d
388 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)
401 self.assertEqual(getargs_d(x), x)
402 self.assertRaises(OverflowError, getargs_d, 1<<DBL_MAX_EXP)
403 self.assertRaises(OverflowError, getargs_d, -1<<DBL_MAX_EXP)
404 self.assertEqualWithSign(getargs_d(0.0), 0.0)
405 self.assertEqualWithSign(getargs_d(-0.0), -0.0)
406 r = getargs_d(NAN)