Lines Matching refs:getargs_h
217 from _testcapi import getargs_h
219 self.assertRaises(TypeError, getargs_h, 3.14)
220 self.assertEqual(99, getargs_h(Long()))
221 self.assertEqual(99, getargs_h(Int()))
223 self.assertRaises(OverflowError, getargs_h, SHRT_MIN-1)
224 self.assertEqual(SHRT_MIN, getargs_h(SHRT_MIN))
225 self.assertEqual(SHRT_MAX, getargs_h(SHRT_MAX))
226 self.assertRaises(OverflowError, getargs_h, SHRT_MAX+1)
228 self.assertEqual(42, getargs_h(42))
229 self.assertEqual(42, getargs_h(42L))
230 self.assertRaises(OverflowError, getargs_h, VERY_LARGE)