Lines Matching refs:getargs_d
363 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)
375 self.assertEqual(getargs_d(x), x)
376 self.assertRaises(OverflowError, getargs_d, 1<<DBL_MAX_EXP)
377 self.assertRaises(OverflowError, getargs_d, -1<<DBL_MAX_EXP)
378 self.assertEqualWithSign(getargs_d(0.0), 0.0)
379 self.assertEqualWithSign(getargs_d(-0.0), -0.0)
380 r = getargs_d(NAN)